Official Python SDK for ActorHub.ai - Verify AI-generated content against protected identities
Project description
ActorHub Python SDK
Official Python SDK for ActorHub.ai — Verify AI-generated content against protected identities.
Installation
pip install actorhub
Quick Start
from actorhub import ActorHub
client = ActorHub(api_key="your-api-key")
# Check consent before AI generation
result = client.check_consent(
platform="sora",
intended_use="video",
image_url="https://example.com/face.jpg",
)
if result.protected:
face = result.faces[0]
print(f"Protected: {face.display_name}")
print(f"Consent: {face.consent.video_generation}")
# Check if active consent token exists
if face.token and face.token.valid:
print(f"Active token: {face.token.source}")
# Verify trust signature
if result.trust:
print(f"Signed: {result.trust.algorithm}")
With Consent Token
result = client.check_consent(
platform="sora",
intended_use="video",
image_url="https://example.com/face.jpg",
consent_token="ACT-XXXX", # Token from identity owner
)
Async Support
from actorhub import AsyncActorHub
async with AsyncActorHub(api_key="your-api-key") as client:
result = await client.check_consent(
platform="runway",
intended_use="video",
image_url="https://example.com/face.jpg",
)
Links
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
actorhub-0.2.0.tar.gz
(8.5 kB
view details)
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
actorhub-0.2.0-py3-none-any.whl
(10.4 kB
view details)
File details
Details for the file actorhub-0.2.0.tar.gz.
File metadata
- Download URL: actorhub-0.2.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36dff56cf412397dbe34557009b0c4f94e0fa00fd86665c5fff1b7a792439c65
|
|
| MD5 |
780dbfbd7f9553217427a0537c3462c9
|
|
| BLAKE2b-256 |
77e3254902a720a96fc2297edde1935e64a6aca7f23471ce0ae8fc77a97e6242
|
File details
Details for the file actorhub-0.2.0-py3-none-any.whl.
File metadata
- Download URL: actorhub-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f094f7d6e588a0aa9c6f0827072cb22d67be75f1387c56e6b2e8a24260073df5
|
|
| MD5 |
554d448a26a3574d11d9c986118ca9f0
|
|
| BLAKE2b-256 |
9cf145ac8299b791630245c0ff53256a9b25e622819dbdb7e85d4d5d50529ae7
|