Skip to main content

prproj-parser

A pure-Python parser for Adobe Premiere Pro .prproj project files. Extracts sequences, tracks, and clips (with resolved media paths, timecodes, and clip types) without needing Premiere Pro installed.

.prproj files store a flat, gzip-compressed XML object graph — sequences, tracks, and clips reference each other by ID rather than nesting. This library resolves that reference graph into a simple, typed object model.

Install

pip install prproj-parser

Optional extras:

pip install prproj-parser[fast]    # lxml backend (faster parsing)
pip install prproj-parser[secure]  # defusedxml backend (hardened against XML entity attacks)
pip install prproj-parser[all]     # both

Requires Python 3.9+. No dependencies by default — falls back to the stdlib xml.etree.ElementTree.

Parsing is single-pass and scales linearly: an 8,000-clip project loads in ~0.2 s on a typical laptop on the default stdlib/defusedxml backends (smaller gains under the lxml extra; see benchmarks/).

Quick start

from prproj_parser import load

project = load("my_project.prproj")

for seq in project.sequences:
    print(seq.name, seq.frame_rate, seq.duration_seconds)
    for clip in seq.clips:
        print(f"  [{clip.clip_type}] {clip.name}  {clip.start_timecode}-{clip.end_timecode}")
        if clip.media:
            print(f"    media: {clip.media.best_path}")

For just the sequence names (near-zero memory, doesn't resolve clips):

from prproj_parser import list_sequences

names = list_sequences("my_project.prproj")

API

Function / Class Purpose
load(file_path) Parse a .prproj file, return a fully-resolved Project.
list_sequences(file_path) Ultra-lightweight: just sequence names.
Project .sequences, .sequence_names, .get_sequence(name)
Sequence .clips, .video_clips, .audio_clips, .tracks, .frame_rate, .duration_seconds
Track .index, .track_type, .clips
Clip .name, .start_timecode/.end_timecode, .start_seconds/.end_seconds, .duration_seconds, .clip_type, .speed_percent, .media, .is_nested_sequence
MediaInfo .best_path, .file_path, .actual_path, .relative_path, .title

clip_type is one of "Video", "Audio", "Image", "Graphic", "Premiere element" (adjustment layers, color mattes, black video, bars & tone — no real underlying media file), or "Unknown".

speed_percent is 100.0 for normal speed, 200.0 for 2x, 50.0 for half speed, etc.

Both .prproj files that are gzip-compressed (the common case) and files that are plain UTF-8 XML (also produced by Premiere Pro) are supported transparently.

See the module docstrings (help(prproj_parser)) for full API details — the package ships with type hints (py.typed).

Known limitations

  • Nested/multicam sequences are not flattened. A sequence nested inside another timeline is detected (clip.is_nested_sequence == True) but its own clips are not recursively resolved. Tracked in #1.
  • Speed ramps / time remapping (as opposed to a single constant speed) report the clip's base PlaybackSpeed value; keyframed speed changes over the clip's duration are not modeled.
  • Verified against Premiere Pro project files from versions 2023–2026 (PremiereData Version="3"). Older/newer formats are untested.

.prproj format notes

Contributor/reference docs live in docs/prproj-format/. They are unofficial research notes based on observed project files, not an Adobe-authoritative spec.

Development

python -m pip install -e ".[dev,all]"
ruff check .
ruff format --check .
mypy src
pytest
python -m build
python -m twine check dist/*

License

MIT

Metadata

Release files for prproj-parser 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prproj-parser 0.1.0
File Size Uploaded Provenance Actions
prproj_parser-0.1.0.tar.gz 78.6 kB With provenance Details for prproj_parser-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prproj-parser 0.1.0
File Interpreter ABI Platform Actions
prproj_parser-0.1.0-py3-none-any.whl Python 3 none any Details for prproj_parser-0.1.0-py3-none-any.whl

Total release size: 106.5 kB

Release files / prproj_parser-0.1.0.tar.gz

Download URL prproj_parser-0.1.0.tar.gz
Size 78.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8fa8f348b76b683dbbe35c2f8e315e1663d3b1a72f1accf5a9f96f7d7b84de28
BLAKE2b-256 checksum
How to use checksums
91eba854b26c669f45df12630326b9b835abdcf258004bdd094d73e7adbc92a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / prproj_parser-0.1.0-py3-none-any.whl

Download URL prproj_parser-0.1.0-py3-none-any.whl
Size 27.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f66b50a4338c815444775ff1bd3eab18fde603a95a8a2ce9e127ac62719b8e7
BLAKE2b-256 checksum
How to use checksums
30515981a0ad6a66a4db5e8b21d2e9fc774117b33ba5333bcf0f410e74d14c12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Security for prproj-parser 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for prproj_parser-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page