StringUidMapping

class app.portfolio.models.store.string_uid_mapping.StringUidMapping[source]

Bases: MutableMapping[str, Uid], LoggableHierarchicalMixin

Inheritance diagram of StringUidMapping

Inheritance Diagram for StringUidMapping

Methods

__init__(*args[, instance_parent])

get_entity(name, *[, fail])

get_entity_record(name, *[, fail])

remove_uid(uid)

update(value, /)

Attributes

entity_store

__init__(*args: Mapping[str, Entity] | Mapping[str, Uid], instance_parent: EntityStore | None = None) None[source]
Parameters:
Return type:

None

property entity_store: EntityStore
get_entity(name: str, *, fail: bool = True) Entity | None[source]
Parameters:
Return type:

Entity | None

get_entity_record(name: str, *, fail: bool = True) EntityRecord | None[source]
Parameters:
Return type:

EntityRecord | None

remove_uid(uid: Uid) None[source]
Parameters:

uid (Uid)

Return type:

None

update(value: Mapping[str, Uid | Entity], /) None[source]
Parameters:

value (Mapping[str, Uid | Entity])

Return type:

None