Skip to main content

Python SDK for 0byte — the origin protocol for AI content

Project description

0byte Python SDK

The official Python SDK for 0byte — the origin protocol for AI content.

What It Does

  • Stamps AI-generated content with a cryptographic proof of origin
  • Computes perceptual fingerprints that survive re-encoding and screenshots
  • Stores proofs in the 0byte registry for public verification
  • Verifies any content against the registry in a single call

Installation

pip install 0byte

Quickstart

from zerobyte import Client

client = Client(api_key="0b_key_...")

# Stamp any AI-generated content
proof = client.stamp(
    content=image_bytes,
    content_type="image/png",
    provider="stability",
    model="sdxl-turbo",
)

print(proof.id)          # "0b_proof_abc123"
print(proof.fingerprint) # perceptual content hash
print(proof.verify_url)  # "https://verify.0byte.dev/0b_proof_abc123"

# Verify any content
result = client.verify(content=some_image_bytes)
print(result.matched)    # True / False
print(result.confidence) # fingerprint similarity score

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

0byte-0.2.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

0byte-0.2.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file 0byte-0.2.0.tar.gz.

File metadata

  • Download URL: 0byte-0.2.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for 0byte-0.2.0.tar.gz
Algorithm Hash digest
SHA256 64c9a65c9a7cac91746e81a9ff4f0797601bc2a5955767fa72e5ffc46b4270cc
MD5 94be2d6b031cce64b457cd15c96a9c1c
BLAKE2b-256 90096c592e945385f7ab5cd38a9ea7b860aeec79b547642070212f54ba4d14f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for 0byte-0.2.0.tar.gz:

Publisher: publish-sdk.yml on 0byte-lab/0byte

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

File details

Details for the file 0byte-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: 0byte-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for 0byte-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49f03985f9927e9846c404ab322887714f4cc74a34c9a738efe8d09f90c83f5a
MD5 2de4d3b68e1cd02543cfe53b57b30605
BLAKE2b-256 d6c8de8528ead7b959e7998f0dcdc6aa0f6f3ae7b6ceb879c027eb1c9aa691f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for 0byte-0.2.0-py3-none-any.whl:

Publisher: publish-sdk.yml on 0byte-lab/0byte

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