Descriptor

Descriptor#

class Descriptor#

Descriptor of a blob stored in the local registry.

PyDescriptor intentionally does not carry a LocalRegistryHandle. It is a lightweight descriptor view returned by registry-owning Artifact objects. The blob can only be read by passing this value back to one of those owner objects, whose handle keeps temporary registries alive. If a descriptor outlives every owner of its temporary registry, it is just inert metadata and cannot be used to access bytes.

__eq__(rhs: Any) bool#
__str__() str#
to_dict() dict#
to_json() str#
property annotations: dict[str, str]#

Read-only property.

property digest: str#

Read-only property.

property media_type: str#

Read-only property.

property size: int#

Read-only property.

property user_annotations: dict[str, str]#

Read-only property.

Return annotations with key prefix "org.ommx.user."