Skip to main content

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.

  1. Update version in pyproject.toml.
  2. Merge to main.
  3. Create a GitHub Release with a tag matching the version (e.g. v0.1.0).
  4. The publish.yml workflow builds and uploads to PyPI automatically.

Configuration:

  • PyPI: A trusted publisher is registered for trufo-ai/trufo-pypublish.ymlpypi environment.
  • GitHub: A pypi environment is configured in the repo settings (Settings → Environments).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trufo-0.1.0.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trufo-0.1.0-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

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

Hashes for trufo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1c5c37780bc6166034784253f2b30898f875943e46fbc11f3f4ba0e6a08b48d0
MD5 9e0a398011e9efaad94f15beb9e69013
BLAKE2b-256 29f14ccf8f8cede3df6e202401271d08ae925a50ef7ce59dc6a750d8ead37ad7

See more details on using hashes here.

Provenance

The following attestation bundles were made for trufo-0.1.0.tar.gz:

Publisher: publish.yml on trufo-ai/trufo-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for trufo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27cb35ec6f5468287d9e8e25381791fe13e9f63646f9ba1e6afbdafefe633e31
MD5 5dd1667c5f46c9db78a154b241b0b368
BLAKE2b-256 3c177a2042f116004400f3a22e4756008d9d2c230034d7e5474be3a051318962

See more details on using hashes here.

Provenance

The following attestation bundles were made for trufo-0.1.0-py3-none-any.whl:

Publisher: publish.yml on trufo-ai/trufo-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page