Registry / storage / pyaaf2

pyaaf2

JSON →
library1.7.1pypypiunverified

pyaaf2 is a Python module for reading and writing Advanced Authoring Format (AAF) files, a multimedia file format used in professional video editing. As of version 1.7.1, it supports Python >=2.7 and 3.7+. The library is maintained with periodic updates for bug fixes and format improvements.

pip install pyaaf2
INSTALL
IMPORT
SIG · PYAAF2
P
pyaaf2
storagepythonv1.7.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AAFFile
from aaf2 import AAFFile
from aaf2 import AAFFile

Basic read and write operations with aaf2.open(). Use 'r' for reading, 'w' for writing.

import aaf2 # Open an existing AAF file with aaf2.open('example.aaf', 'r') as f: for mob in f.content.mobs: print(mob.name) # Create a new AAF file with aaf2.open('output.aaf', 'w') as f: # ... add content ... pass
Debug
Known issues
gotchaThe open() function with write mode 'w' will overwrite an existing file without warning. Use 'a' to append or check existence manually.
fix
Do not rely on 'w' for safe updates; always create backups.
affects: all
deprecatedPython 2.7 support was deprecated in recent versions. Ensure you use Python 3.7+ for best compatibility.
fix
Upgrade to Python 3.7 or later.
affects: >=1.7.0
gotchaWhen reading AAF files, some properties may return empty strings or None if not set. Always check for None before accessing methods.
fix
Use conditional checks: if mob.name: print(mob.name)
affects: all
Upgrade
Version history
1.7.1latest on PyPI · released Sep 17, 2023
Audit
Dependencies
sixrequiredUsed for Python 2/3 compatibility in some internal code
Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
pyaaf2 — pip install pyaaf2 · libregistry