swh.web.utils.typing module#
- class swh.web.utils.typing.SnapshotContext[source]#
Bases:
TypedDict
- branches: List[SnapshotBranchInfo]#
list of snapshot branches (possibly truncated)
- origin_info: OriginInfo | None#
optional origin info associated to the snapshot
- releases: List[SnapshotReleaseInfo]#
list of snapshot releases (possibly truncated)
- revision_info: Dict[str, Any] | None#
optional revision info set when browsing snapshot in that scope
- visit_info: OriginVisitInfo | None#
optional origin visit info associated to the snapshot
- class swh.web.utils.typing.SWHObjectInfo[source]#
Bases:
TypedDict
- object_type: ObjectType#
- class swh.web.utils.typing.SWHIDInfo[source]#
Bases:
dict
- context: SWHIDContext#
- object_type: ObjectType#
- class swh.web.utils.typing.ContentMetadata[source]#
Bases:
dict
- object_type: ObjectType#
- class swh.web.utils.typing.DirectoryMetadata[source]#
Bases:
dict
- object_type: ObjectType#
- class swh.web.utils.typing.ReleaseMetadata[source]#
Bases:
dict
- object_type: ObjectType#
- class swh.web.utils.typing.RevisionMetadata[source]#
Bases:
dict
- object_type: ObjectType#
- class swh.web.utils.typing.IntrinsicMetadataFiletype(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
Enum
- CODEMETA = 'codemeta.json'#
- CFF = 'citation.cff'#
- class swh.web.utils.typing.IntrinsicMetadataFile[source]#
Bases:
TypedDict
- type: IntrinsicMetadataFiletype#
Intrinsic metadata file type