Utils¶
-
gvm.utils.
get_version_string
(version)¶ Create a version string from a version tuple
- Parameters
version (
tuple
) – version as tuple e.g. (1, 2, 0, dev, 5)- Return type
str
- Returns
The version tuple converted into a string representation
XML¶
-
gvm.xml.
pretty_print
(xml)¶ Prints beautiful XML-Code
This function gets a string containing the xml, an object of List[lxml.etree.Element] or directly a lxml element.
Print it with good readable format.
- Parameters
xml (str, List[lxml.etree.Element] or lxml.etree.Element) – xml as string, List[lxml.etree.Element] or directly a lxml element.