assets

pydantic model AnyAsset[source]
Config:
  • extra: str = forbid

  • arbitrary_types_allowed: bool = True

Fields:
field obj: Any = None

Instantiated asset instance

class counter(start: int = 0)[source]

custom generator because itertools is removing deepcopy in 3.14 https://docs.python.org/3/deprecations/pending-removal-in-3.14.html

send(_: Any) int[source]
throw(type: Any = None, value: Any = None, traceback: Any = None) None[source]
property current: int
class LifecycleCounter(start: int = 0)[source]

Counter that records when its context manager has been entered and exited

counter_cm(start: int = 0) Generator[LifecycleCounter, None, None][source]
pydantic model Initializer[source]

True when initialized, false when deinitialized

Config:
  • extra: str = forbid

  • arbitrary_types_allowed: bool = True

Fields:
field obj: bool = False

Instantiated asset instance

deinit() None[source]
init() None[source]