sondra.utils module

sondra.utils.camelcase_slugify(name)[source]
sondra.utils.convert_camelcase(name)[source]
sondra.utils.get_random_string(length=12, allowed_chars='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789')[source]

Adapted from Django. REMOVED SECRET_KEY FOR NOW

Returns a securely generated random string. The default length of 12 with the a-z, A-Z, 0-9 character set returns a 71-bit value. log_2((26+26+10)^12) =~ 71 bits

sondra.utils.import_string(dotted_path)[source]

Adapted from Django.

Import a dotted module path and return the attribute/class designated by the last name in the path. Raise ImportError if the import failed.

sondra.utils.is_exposed(fun)[source]
sondra.utils.mapjson(fun, doc)[source]
sondra.utils.qiter(o)[source]
sondra.utils.resolve_class(obj, required_superclass=<class 'object'>, required_metaclass=<class 'type'>)[source]
sondra.utils.schema_sans_definitions(original, *properties)[source]
sondra.utils.schema_sans_properties(original, *properties)[source]
sondra.utils.schema_with_definitions(original, **updates)[source]
sondra.utils.schema_with_properties(original, **updates)[source]
sondra.utils.split_camelcase(name)[source]