Utilities

Warning

The functionality provided by the fseconomy.util module is reserved for internal purposes. It does not constitute an API intended for public use. This documentation is solely provided for the sake of completeness, and to support developers contributing to the fseconomy package.

Hex Utilities

fseconomy.util.hex.is_hex(value: str) bool

validate if a string represents a number in hexadecimal format

Parameters:

value (str) – string to validate

Returns:

True if string represents a hexadecimal number, otherwise False

Return type:

bool

XML Utilities

fseconomy.util.xml.to_python(xml_data: str) dict

Convert raw XML string into a Python data structure

Parameters:

xml_data (str) – string representing XML data

Raises:

FseDataParseError – provided text cannot be parsed

Returns:

Python dictionary representing the data parsed from the XML input

Return type:

dict