Trufo SDK for content provenance API services.
Project description
Trufo
Open-source library to simplify interactions with the Trufo Provenance Service (TPS).
The library is currently in an alpha release state. Please be advised that until the library enters a beta release state, there may be drift in the library schema.
The Trufo Provenance Platform is under active beta development, with new provenance features and product workflows being added regularly. If you are building against the platform and have questions about the right integration path, please contact support@trufo.ai. We are happy to help.
Optional Provenance Engine
Note: Production usage of this feature is still pending C2PA Conformance Approval.
When using the standard C2PA Signing API, the raw digital media content is sent to the Trufo server for processing. In cases where data privacy is important or where the content file is large, a distributed API is available where most media processing is local (and signing is remote, on Trufo servers). To enable this functionality, please install the provenance extra:
pip install "trufo[provenance]"
Note: Currently, the provenance installation is only supported on Linux machines.
Workflow Examples (Quickstart)
There are a number of documents to get you started quickly with specific use cases:
| Use case | Trufo Product | Quickstart |
|---|---|---|
| Auth Setup | — | docs/quickstart/0_auth.md |
| C2PA Signing Certificate CSRs | C2PA Signing Certificates | docs/quickstart/1_c2pa_cert.md |
| AI Labeling | C2PA & CAWG Signing API | docs/quickstart/2_ai_labeling.md |
| Organization Stamping & Assertions | C2PA & CAWG Signing API | docs/quickstart/3_cawg_publish.md |
| Distributed Signing | C2PA & CAWG Signing API | docs/quickstart/4_distributed_signing.md |
Reference Documentation
The full reference documentation is spread across the following files:
| Service | Document | Description |
|---|---|---|
| Auth | docs/api/api_auth.md | Headers, access tokens, sessions |
| TPS | docs/api/api_c2pa.md | C2PA signing endpoints |
| TCA | docs/api/tca_ca.md | Certificate Authority — enrollment, revocation, timestamping |
| TCA | docs/api/tca_ra.md | Registration Authority — instances, credentials, CSR JWTs |
| CLI | docs/cli.md | Credential management (dev tool; use the Python API in prod) |
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.4.2.tar.gz.
File metadata
- Download URL: trufo-0.4.2.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
473c2d39ff65e7cadac4f6a3cf4a03229a58152fd5ffe8335d9d52ed69b1ac65
|
|
| MD5 |
1475807f3e9534ff44b189f64dacb4dd
|
|
| BLAKE2b-256 |
484327a3315ffd5ce7c4c9a76682248691dd611359900df67a9119eb32929525
|
Provenance
The following attestation bundles were made for trufo-0.4.2.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.4.2.tar.gz -
Subject digest:
473c2d39ff65e7cadac4f6a3cf4a03229a58152fd5ffe8335d9d52ed69b1ac65 - Sigstore transparency entry: 1945615931
- Sigstore integration time:
-
Permalink:
trufo-ai/trufo-py@4c8e120517eef1884a086fd052b7e3884fa1823e -
Branch / Tag:
refs/tags/v0.4.2 - Owner: https://github.com/trufo-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4c8e120517eef1884a086fd052b7e3884fa1823e -
Trigger Event:
release
-
Statement type:
File details
Details for the file trufo-0.4.2-py3-none-any.whl.
File metadata
- Download URL: trufo-0.4.2-py3-none-any.whl
- Upload date:
- Size: 34.2 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 |
031bfdb8161ffc7244400d95d67351999000e81af9d2e95facdf69b7fef406ee
|
|
| MD5 |
876f37ba5a1f92bb951b71e09fdac096
|
|
| BLAKE2b-256 |
635a2eca5add9aa6d156b8dfd0937a6d8e804c478c3f4e86760a5b09f7b4926e
|
Provenance
The following attestation bundles were made for trufo-0.4.2-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.4.2-py3-none-any.whl -
Subject digest:
031bfdb8161ffc7244400d95d67351999000e81af9d2e95facdf69b7fef406ee - Sigstore transparency entry: 1945615946
- Sigstore integration time:
-
Permalink:
trufo-ai/trufo-py@4c8e120517eef1884a086fd052b7e3884fa1823e -
Branch / Tag:
refs/tags/v0.4.2 - Owner: https://github.com/trufo-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4c8e120517eef1884a086fd052b7e3884fa1823e -
Trigger Event:
release
-
Statement type: