Metadata Collections¶
MetaAttributeList¶
- class avblocks.meta_attribute_list.MetaAttributeList¶
Bases:
ObjectCollection[MetaAttribute]Collection of MetaAttribute objects.
- static from_native(native_attrs: c_void_p) MetaAttributeList¶
Create a Python MetaAttributeList from a native MetaAttributeList pointer.
- item_by_name(name: str) MetaAttribute | None¶
Find an attribute by name.
- Parameters:
name – The attribute name to search for
- Returns:
The MetaAttribute with the specified name, or None if not found
- to_native(native_attrs: c_void_p)¶
Add all attributes from this Python list to the provided native MetaAttributeList pointer. The native_attrs should be obtained via lib.Metadata_attributes(native_metadata).
MetaPictureList¶
- class avblocks.meta_picture_list.MetaPictureList¶
Bases:
ObjectCollection[MetaPicture]Collection of MetaPicture objects.
- static from_native(native_pics: c_void_p) MetaPictureList¶
Create a Python MetaPictureList from a native MetaPictureList pointer.
- to_native(native_pics: c_void_p)¶
Add all pictures from this Python list to the provided native MetaPictureList pointer. The native_pics should be obtained via lib.Metadata_pictures(native_metadata).