titanfe.ujo_helper module

simplify ujo conversions (eventually we’d want to use an UjoScheme instead though)

titanfe.ujo_helper.get_ujo_value(value, type_name)[source]

get value in ujo based on given type_name and value

titanfe.ujo_helper.py_to_ujo_bytes(py_obj)[source]
titanfe.ujo_helper.python_to_ujo(py_obj)[source]

convert python objects recursively into corresponding UJO

int, float, etc. will be converted to Int64, Float64, etc. If you actually want e.g. an Int8 do a manual conversion for that specific item beforehand.

titanfe.ujo_helper.ujo_bytes_to_py(bytes_obj)[source]