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
import zbyte
client = zbyte.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
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 0byte-0.1.0.tar.gz.
File metadata
- Download URL: 0byte-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf3525465672daaa86d7244d9ef734d397e572545844872a13de0b01462be32a
|
|
| MD5 |
7b3856b9efb31324c37befc7d0ca0960
|
|
| BLAKE2b-256 |
da4038c56ded3b3127e5e85b68102940bf94412d041ad59c6d65fceb4d1631f5
|
Provenance
The following attestation bundles were made for 0byte-0.1.0.tar.gz:
Publisher:
publish-sdk.yml on 0byte-lab/0byte
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
0byte-0.1.0.tar.gz -
Subject digest:
bf3525465672daaa86d7244d9ef734d397e572545844872a13de0b01462be32a - Sigstore transparency entry: 1077039008
- Sigstore integration time:
-
Permalink:
0byte-lab/0byte@3d9c27288b41809574e7ffa00a6ff34f8fc611c9 -
Branch / Tag:
refs/tags/sdk-v0.1.0 - Owner: https://github.com/0byte-lab
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk.yml@3d9c27288b41809574e7ffa00a6ff34f8fc611c9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file 0byte-0.1.0-py3-none-any.whl.
File metadata
- Download URL: 0byte-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68f2d68922b673b8e7c5aa230a9047dabe0226ef4376be555b124ad1fb26fab2
|
|
| MD5 |
b11705bc5290c82e0050bf2c3b68f9bd
|
|
| BLAKE2b-256 |
e1f1366b0bfe625296eecd5639e34e71598b30cc3a3632d400699a0400bcbf41
|
Provenance
The following attestation bundles were made for 0byte-0.1.0-py3-none-any.whl:
Publisher:
publish-sdk.yml on 0byte-lab/0byte
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
0byte-0.1.0-py3-none-any.whl -
Subject digest:
68f2d68922b673b8e7c5aa230a9047dabe0226ef4376be555b124ad1fb26fab2 - Sigstore transparency entry: 1077039013
- Sigstore integration time:
-
Permalink:
0byte-lab/0byte@3d9c27288b41809574e7ffa00a6ff34f8fc611c9 -
Branch / Tag:
refs/tags/sdk-v0.1.0 - Owner: https://github.com/0byte-lab
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk.yml@3d9c27288b41809574e7ffa00a6ff34f8fc611c9 -
Trigger Event:
push
-
Statement type: