Trufo SDK for content provenance API services.
Project description
Trufo
Open-source SDK for Trufo's content provenance API services.
The library is currently in an alpha release state. TLS 1.3+ is required for all API requests.
Documentation
| Document | Description |
|---|---|
| docs/api/api_access.md | API access setup (API keys, authentication) |
| docs/api/api_c2pa.md | C2PA generation (signing) — TPS endpoint reference |
| docs/api/tca_ca.md | TCA Certificate Authority — enrollment, revocation, timestamping |
| docs/api/tca_ra.md | TCA Registration Authority — instances, credentials, CSR JWTs |
| docs/cli.md | CLI for credential management (for development; use the Python API in production) |
Examples
| Example | Description |
|---|---|
| examples/tps_test_sign_c2pa.py | Sign a media file with C2PA via the TPS test endpoint |
| examples/tca_get_c2pa_cert.py | Obtain a C2PA test certificate from the Trufo CA |
Internal Development
Please refer to the lib-dev skill in skills/ for guidance on coding.
Publishing to PyPI
Publishing uses Trusted Publishing (OIDC) via GitHub Actions — no API tokens needed.
- Update
versioninpyproject.toml. - Merge to
main. - Create a GitHub Release with a tag matching the version (e.g.
v0.1.0). - The
publish.ymlworkflow builds and uploads to PyPI automatically.
Configuration:
- PyPI: A trusted publisher is registered for
trufo-ai/trufo-py→publish.yml→pypienvironment. - GitHub: A
pypienvironment is configured in the repo settings (Settings → Environments).
Project details
Release history Release notifications | RSS feed
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 trufo-0.1.0.tar.gz.
File metadata
- Download URL: trufo-0.1.0.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c5c37780bc6166034784253f2b30898f875943e46fbc11f3f4ba0e6a08b48d0
|
|
| MD5 |
9e0a398011e9efaad94f15beb9e69013
|
|
| BLAKE2b-256 |
29f14ccf8f8cede3df6e202401271d08ae925a50ef7ce59dc6a750d8ead37ad7
|
Provenance
The following attestation bundles were made for trufo-0.1.0.tar.gz:
Publisher:
publish.yml on trufo-ai/trufo-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trufo-0.1.0.tar.gz -
Subject digest:
1c5c37780bc6166034784253f2b30898f875943e46fbc11f3f4ba0e6a08b48d0 - Sigstore transparency entry: 1341725704
- Sigstore integration time:
-
Permalink:
trufo-ai/trufo-py@412350b91e7b8149316b4e1086b759d64cb3142a -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/trufo-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@412350b91e7b8149316b4e1086b759d64cb3142a -
Trigger Event:
release
-
Statement type:
File details
Details for the file trufo-0.1.0-py3-none-any.whl.
File metadata
- Download URL: trufo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27cb35ec6f5468287d9e8e25381791fe13e9f63646f9ba1e6afbdafefe633e31
|
|
| MD5 |
5dd1667c5f46c9db78a154b241b0b368
|
|
| BLAKE2b-256 |
3c177a2042f116004400f3a22e4756008d9d2c230034d7e5474be3a051318962
|
Provenance
The following attestation bundles were made for trufo-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on trufo-ai/trufo-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trufo-0.1.0-py3-none-any.whl -
Subject digest:
27cb35ec6f5468287d9e8e25381791fe13e9f63646f9ba1e6afbdafefe633e31 - Sigstore transparency entry: 1341725715
- Sigstore integration time:
-
Permalink:
trufo-ai/trufo-py@412350b91e7b8149316b4e1086b759d64cb3142a -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/trufo-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@412350b91e7b8149316b4e1086b759d64cb3142a -
Trigger Event:
release
-
Statement type: