ocrd_utils.introspect module

Utility functions to simplify access to data structures.

ocrd_utils.introspect.freeze_args(func)[source]

Transform mutable dictionary into immutable. Useful to be compatible with cache. Code taken from this post

ocrd_utils.introspect.membername(class_, val)[source]

Convert a member variable/constant into a member name string.

ocrd_utils.introspect.set_json_key_value_overrides(obj, *kvpairs)[source]