Parser

Functions for parsing input arguments.

Functions

auto_parse([types])

Function decorator to perform automatic parsing of input arguments.

is_valid_uuid(value)

Checks whether the given value is a UUID.

parse_bool(value)

Parses boolean input values.

parse_int(value)

Parses integer input values.

parse_list(value)

Parses input value to be of type list

parse_optional(value, parser)

Applies parsing only if input is not None.

parse_str(value)

Parses string input values.

parse_time(value)

Parses input to a Timestamp object.

parse_type(value, Type)

Parses a value given a specific type.

parse_uuid(value)

Parses strings expected to be UUIDs.

to_camel_case(snake_case)

Convert snake case fotonepy naming convention to camelCase

to_snake_case(camelCase)

Converts camel case API naming conventions to snake case.