Metadata-Version: 2.4
Name: 0byte
Version: 0.2.1
Summary: Python SDK for 0byte — the origin protocol for AI content
Author: 0byte
License: MIT
Project-URL: Homepage, https://0byte.tech
Project-URL: Source, https://github.com/0byte-lab/0byte
Keywords: ai,provenance,verification,content-authenticity,fingerprint
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.24
Requires-Dist: pydantic>=2.0
Dynamic: license-file

# 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

```bash
pip install 0byte
```

## Quickstart

```python
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://0byte.tech/proof/0b_proof_abc123"

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