Skip to content

Object

UCDP Base Objects.

There are two base objects:

Every UCDP object must be derived from Object.

DOCME: what for what DOCME: pydantic, strict, no extra DOCME: use examples DOCME: caching

Object

Bases: BaseModel

Read-Only :any:pydantic Base Model.

new

new(**kwargs)

Return A Copy With Updated Attributes.

__str__

__str__()

String.

__repr__

__repr__()

Representation.

CachedModelMetaclass

Bases: ModelMetaclass

Meta Class for Cached Model Instances.

__call__

__call__(*args, **kwargs)

Create New Instance or Return Existing One.

Light

DOCME.

LightObject

Bases: Object, Light

DOCME.

NamedObject

Bases: Object

NamedObject.

Attributes:

Name Type Description
name str

Name.

NamedLightObject

Bases: NamedObject, Light

Cacheable NamedObject.

Attributes:

Name Type Description
name

Name.

get_repr

get_repr(obj)

DOCME.