oprindo
Python SDK for Oprindo — C2PA signing identity and implementation evidence for generative-AI providers.
Your content stays local
With the c2pa extra installed, mark() assembles and embeds the C2PA manifest
on your machine — only the claim (kilobytes of metadata and hashes) is sent to
Oprindo. Your media bytes never leave your process in this mode.
Without the extra, mark() refuses to run unless you explicitly pass
allow_full_service=True, which transmits the asset to the hosted marking endpoint.
The choice is always yours and always explicit.
Install
pip install oprindo[c2pa] # content-local marking (recommended)
pip install oprindo # stdlib-only: hosted verify + evidence
Mark
from oprindo import Oprindo
client = Oprindo(api_key=os.environ["OPRINDO_API_KEY"])
with open("generated.jpg", "rb") as f:
result = client.mark(f.read(), "image/jpeg", generator={"name": "YourProduct", "version": "1.0.0"})
with open("generated.marked.jpg", "wb") as f:
f.write(result.asset)
print(result.trust_state, result.evidence_id)
Every signature carries an explicit trust state (sandbox, pre_conformance, or
trusted) — never blurred. Test-key signatures carry a visible sandbox marker.
Verify
report = client.verify(asset_bytes, "image/jpeg")
Local when the c2pa extra is installed; hosted otherwise.
Evidence
records = client.evidence(from_ts="2026-08-01")
Append-only, hash-chained implementation-evidence records, mapped to EU Transparency Code Section 1 measures.
Scope
This SDK helps you implement and evidence Article 50 marking measures. Compliance depends on your complete implementation and circumstances. Nothing here is legal advice.
License
Apache-2.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oprindo-0.1.0.tar.gz.
File metadata
- Download URL: oprindo-0.1.0.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7ea581de87b167fcbb7fd8e201561940748f92b755395dc9224adb36d6080ca
|
|
| MD5 |
e0056035884ab26e6691e517fdcf524c
|
|
| BLAKE2b-256 |
c24be1b2e57bbc7c3fe3772c661decfe16cf020ad2596ef87d4d709221767f55
|
Provenance
The following attestation bundles were made for oprindo-0.1.0.tar.gz:
Publisher:
publish.yml on hexrift/oprindo-sdk-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oprindo-0.1.0.tar.gz -
Subject digest:
b7ea581de87b167fcbb7fd8e201561940748f92b755395dc9224adb36d6080ca - Sigstore transparency entry: 2257134500
- Sigstore integration time:
-
Permalink:
hexrift/oprindo-sdk-py@bea688c0c76f441a2484a5e7f415a1f7ff10c6d5 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/hexrift
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bea688c0c76f441a2484a5e7f415a1f7ff10c6d5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file oprindo-0.1.0-py3-none-any.whl.
File metadata
- Download URL: oprindo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a25960569e9482f46202da035ecacadcca1be566bc1ec4b2142d5bca144ce6e1
|
|
| MD5 |
f4a5cef190ff10e1187caba44360ee0c
|
|
| BLAKE2b-256 |
6a6c7cc42b15aa50d36a7da21fecd8f4e535ea7f5be2230e558ea1a14929c959
|
Provenance
The following attestation bundles were made for oprindo-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on hexrift/oprindo-sdk-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oprindo-0.1.0-py3-none-any.whl -
Subject digest:
a25960569e9482f46202da035ecacadcca1be566bc1ec4b2142d5bca144ce6e1 - Sigstore transparency entry: 2257134506
- Sigstore integration time:
-
Permalink:
hexrift/oprindo-sdk-py@bea688c0c76f441a2484a5e7f415a1f7ff10c6d5 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/hexrift
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bea688c0c76f441a2484a5e7f415a1f7ff10c6d5 -
Trigger Event:
push
-
Statement type: