Skip to content

feat: Add convenience APIs - #179

Merged
tmathern merged 18 commits into
mainfrom
mathern/helper-apis-2
Oct 7, 2025
Merged

feat: Add convenience APIs#179
tmathern merged 18 commits into
mainfrom
mathern/helper-apis-2

Conversation

@tmathern

@tmathern tmathern commented Oct 3, 2025

Copy link
Copy Markdown
Collaborator

Code changes:
Some of our other SDKs have convenience methods that help dealing with manifests.
I thought this is a good idea to have too for developer experience, so I added the following, all on the Reader:

  • get_active_manifest, returns the active manifest (parsed as a dictionary for easy use);
  • get_manifest_by_label, retrieves any manifest based on its label/id and returns it as dictionary;
  • get_validation_state, returns just the validation state of the whole manifest store;
  • get_validation_results returns all the validation results from the manifest store (and only the validation results).

Workflow changes:

  • Add formatting and syntax check in github workflow

@tmathern
tmathern requested review from dyro and gpeacock October 3, 2025 16:01
@tmathern tmathern self-assigned this Oct 3, 2025
Base automatically changed from mathern/helper-apis to main October 4, 2025 03:15
Comment thread src/c2pa/c2pa.py Outdated
Comment thread src/c2pa/c2pa.py Outdated
Comment thread src/c2pa/c2pa.py Outdated
@tmathern
tmathern requested a review from gpeacock October 6, 2025 22:42
Comment thread tests/test_unit_tests.py
Comment thread src/c2pa/c2pa.py Outdated
@tmathern
tmathern merged commit 73697b7 into main Oct 7, 2025
23 checks passed
@tmathern
tmathern deleted the mathern/helper-apis-2 branch October 7, 2025 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants