Base

class audobject.resolver.Base[source]

Abstract resolver class.

Implement for arguments that are not one of:

  • bool

  • datetime.datetime

  • dict

  • float

  • int

  • list

  • None

  • Object

  • str

__hash__()

Base.__hash__()

Return hash(self).

decode()

Base.decode(value)[source]

Decode value.

Takes the encoded value and converts it back to its original type.

Parameters

value (Union[bool, datetime, dict, float, int, list, None, str]) – value to decode

Return type

Any

Returns

decoded value

encode()

Base.encode(value)[source]

Encode value.

The type of the returned value must be one of:

  • bool

  • datetime.datetime

  • dict

  • float

  • int

  • list

  • None

  • Object

  • str

Parameters

value (Any) – value to encode

Return type

Union[bool, datetime, dict, float, int, list, None, str]

Returns

encoded value

encode_type()

Base.encode_type()[source]

Return encoded type.

Return type

type

Returns

encoded type

root

Base.root

Root folder.

Returns root folder when object is serialized to or from a file, otherwise None is returned.

Returns

root directory