Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ca29351
fix: Open up API to swap out pointers
tmathern Jul 16, 2026
ab5c6f6
Merge branch 'main' into mathern/open-up-api
tmathern Jul 16, 2026
af97d7f
fix: Hardening native handles
tmathern Jul 16, 2026
3c04587
fix: COmments
tmathern Jul 17, 2026
9d7b2ac
fix: Update PID stamping
tmathern Jul 17, 2026
e926b5f
fix: Make isntances swappable
tmathern Jul 17, 2026
222b9a8
fix: Update tests
tmathern Jul 17, 2026
3f93e7e
fix: Improve pointers handling
tmathern Jul 17, 2026
97fe07e
fix: Improve pointers handling 2
tmathern Jul 17, 2026
d95a9d7
fix: The refactor
tmathern Jul 17, 2026
14ca4ec
Merge branch 'main' into mathern/open-up-api
tmathern Jul 17, 2026
0309a92
fix: Improve pointers handling 4
tmathern Jul 18, 2026
d6ebd6f
fix: Improve pointers handling 5
tmathern Jul 18, 2026
fad717b
fix: Rebaseline
tmathern Jul 18, 2026
075fb21
fix: Clean up debug
tmathern Jul 19, 2026
2a78a76
fix: Refactor
tmathern Jul 20, 2026
c24ede6
fix: Refactor
tmathern Jul 20, 2026
359ce98
fix: Refactor 3
tmathern Jul 20, 2026
85b6bfd
fix: Refactor once more
tmathern Jul 20, 2026
2725dce
fix: Baseline for new scenarios
tmathern Jul 20, 2026
7c946b9
fix: Rename vars for clarity
tmathern Jul 20, 2026
f342997
fix: Refactor once more 2
tmathern Jul 20, 2026
e8504bf
fix: Docs
tmathern Jul 20, 2026
f02e14b
fix: Handle handling handles (#296)
tmathern Jul 21, 2026
b0ea8ea
fix: Refactor to simplify based on current C FFI (#297)
tmathern Jul 22, 2026
bdc1a11
ci: Merge commit
tmathern Jul 22, 2026
1e72d83
ci: Merge commit for realz
tmathern Jul 22, 2026
d1f5abc
ci: Clarify comments
tmathern Jul 22, 2026
2ba7209
ci: Re-refactor
tmathern Jul 22, 2026
61d503c
fix: Refactor + docs update
tmathern Jul 22, 2026
e857a52
fix: Docs
tmathern Jul 22, 2026
1ee9a49
fix: Docs 2
tmathern Jul 22, 2026
e588a6a
fix: Docs 3
tmathern Jul 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
323 changes: 269 additions & 54 deletions docs/native-resources-management.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def read_c2pa_data(media_path: str):
# All objects using this context will have trust configured.
with c2pa.Context(settings) as context:
with c2pa.Reader(media_path, context=context) as reader:
print(reader.detailed_json())
print(reader.crjson())
except Exception as e:
print(f"Error reading C2PA data from {media_path}: {e}")
sys.exit(1)
Expand Down
2 changes: 1 addition & 1 deletion examples/sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ def callback_signer_es256(data: bytes) -> bytes:
# The validation state will depend on loaded trust settings.
# Without loaded trust settings,
# the manifest validation_state will be "Invalid".
print(reader.json())
print(reader.crjson())

print("\nExample completed successfully!")
4 changes: 2 additions & 2 deletions examples/sign_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
print("\nReading existing C2PA metadata:")
with open(fixtures_dir + "C.jpg", "rb") as file:
with c2pa.Reader("image/jpeg", file) as reader:
print(reader.json())
print(reader.crjson())

# Create a signer from certificate and key files
with open(fixtures_dir + "es256_certs.pem", "rb") as cert_file:
Expand Down Expand Up @@ -103,7 +103,7 @@
# The validation state will depend on loaded trust settings.
# Without loaded trust settings,
# the manifest validation_state will be "Invalid".
print(reader.json())
print(reader.crjson())

print("\nExample completed successfully!")

Loading
Loading