Skip to content

Add a public otio.bundle module - #2078

Merged
darbyjohnston merged 3 commits into
AcademySoftwareFoundation:mainfrom
darbyjohnston:public-bundle-module
Nov 23, 2026
Merged

darbyjohnston merged 3 commits into
AcademySoftwareFoundation:mainfrom
darbyjohnston:public-bundle-module

Conversation

@darbyjohnston

Copy link
Copy Markdown
Collaborator

This gives Python users access to the bundle API, which can be useful for working directly with bundles instead of going through the adapters.

Assisted-by: Claude Code / Claude Opus 5.5

@codecov-commenter

codecov-commenter commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.71%. Comparing base (537b03e) to head (aa4060c).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2078      +/-   ##
==========================================
+ Coverage   86.57%   86.71%   +0.13%     
==========================================
  Files         185      186       +1     
  Lines       13702    13757      +55     
  Branches     1276     1277       +1     
==========================================
+ Hits        11863    11929      +66     
+ Misses       1667     1658       -9     
+ Partials      172      170       -2     
Flag Coverage Δ
cpp-unittests 64.82% <ø> (ø)
py-unittests 83.90% <100.00%> (+0.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/py-opentimelineio/opentimelineio/__init__.py 100.00% <ø> (ø)
src/py-opentimelineio/opentimelineio/bundle.py 100.00% <100.00%> (ø)
tests/test_otiod.py 97.67% <100.00%> (+1.24%) ⬆️
tests/test_otioz.py 96.61% <100.00%> (+1.05%) ⬆️

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 537b03e...aa4060c. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@darbyjohnston darbyjohnston added the enhancement A request for something new. label Nov 20, 2026

@camkerr camkerr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good and is pretty straightforward. One tiny thing is that we don't seem to have python tests for dry_run anywhere.

It's tested fine in test_bundle.cpp but in python neither otio.bundle.dry_run nor the otioz/otiod adapters test a dryrun=True option.

@timlehr

timlehr commented Nov 23, 2026

Copy link
Copy Markdown
Member

@darbyjohnston this has a merge conflict.

The bundle functions were only reachable from Python as the private
opentimelineio._otio.bundle.

Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
@darbyjohnston

Copy link
Copy Markdown
Collaborator Author

Thanks for the reviews, I added the missing test and fixed the merge conflict.

Check that otio.bundle.dry_run and the otiod and otioz adapters' dryrun
option return the size of the bundle, including the media, without
writing it.

Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
@darbyjohnston
darbyjohnston merged commit 0e26a8f into AcademySoftwareFoundation:main Nov 23, 2026
67 checks passed
@darbyjohnston darbyjohnston modified the milestones: 0.19.0, 1.0 Release Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement A request for something new.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants