bovid.custom_data.domain_types module

Definitions of supported domain level custom data types.

NOTE to developers. This is a work in progress and currently only implements the sub-set of features in use currently.

This sets up the menu of different custom data types available for features such as custom fields.

This mostly sets up the global constants used in the rest of the modules.

The main items are:

  • SUPPORTED_CUSTOM_DATATYPES :: This is a lookup table that maps the

    CustomDataType spec (read ‘symbol’) to concrete data types with a convenient lookup by the type name. Currently there is only one concrete data type for each abstract type.

class bovid.custom_data.domain_types.TypeRec

Bases: NamedTuple

TypeRec(name, type_spec, concrete_type)

name: str

Alias for field number 0

type_spec: CustomDataType

Alias for field number 1

concrete_type: type[bytes | int | float | str | None | Blob | Image]

Alias for field number 2

static __new__(_cls, name, type_spec, concrete_type)

Create new instance of TypeRec(name, type_spec, concrete_type)

Parameters: