imflib.assetmap
SMPTE 429-9-2007/2014: Asset Map
AssetMap and related classes Based on st-429-8-2007: https://ieeexplore.ieee.org/document/7290438
ASSETMAP.xml is the entry point into the IMF package. AssetMap provides the mapping between PKL UUIDs and file locations on a volume. The assetmap must exist and be identical on each volume it references. If multiple volumes are referenced, a VOLINDEX.xml file must be present with a unique index on each volume. The assetmap may contain mappings for more than one package.
- class imflib.assetmap.Asset(id: ~uuid.UUID = <factory>, chunks: list['Chunk'] = <factory>, is_packing_list: ~typing.Optional[bool] = False, annotation_text: ~typing.Optional[~imflib.UserText] = None)
Bases:
object
An Asset as defined in an IMF AssetMap
- class imflib.assetmap.AssetMap(creator: ~imflib.UserText, issuer: ~imflib.UserText, id: ~uuid.UUID = <factory>, volume_count: int = 1, issue_date: ~datetime.datetime = <factory>, assets: list['Asset'] = <factory>, annotation_text: ~typing.Optional[~imflib.UserText] = None)
Bases:
object
An Asset Map component of an IMF package
- creator: UserText
The facility or system that created this asset map
- classmethod from_xml(xml: Element, ns: Optional[dict] = None) AssetMap
Parse the AssetMap from XML
- issuer: UserText
The person or company that issued this asset map
- class imflib.assetmap.Chunk(file_path: str, volume_index: int = 1, offset: int = 0, size: Optional[int] = None)
Bases:
object
A chunk of an Asset
- class imflib.assetmap.VolumeIndex(index: int = 1)
Bases:
object
A VolumeIndex file required only in multi-volume packages
- classmethod from_file(path: str) VolumeIndex
Parse an existing VolumeIndex file