Tectra SDK — sign, watermark, and verify images/videos locally with the Tectra platform
Project description
Tectra SDK
Sign, watermark, and verify images/videos locally with the Tectra platform.
Installation
pip install tectravision-sdk
# or from source:
pip install -e ./sdk
Quick Start
from tectravision_sdk import TectraClient
client = TectraClient(
api_key="iai_...",
signing_key_id="your-signing-key-uuid",
api_url="https://tectra.vision",
fernet_key="your-fernet-key", # or set TECTRA_FERNET_KEY env var
)
# Sign an image (locally — only metadata sent to backend)
result = client.sign("photo.jpg")
print(f"Signed! Record: {result['record_id']}")
print(f"Watermarked file: {result['output_path']}")
# Sign a video (frame-by-frame watermarking)
result = client.sign_video("footage.mp4", keyframe_fps=1)
# Verify any image/video
result = client.verify("suspect.jpg")
print(f"Authentic: {result['authentic']}")
print(f"Origin: {result.get('origin')}")
# Watch a directory and auto-sign new files
def on_signed(path, result):
print(f"Auto-signed {path}: {result['record_id']}")
client.watch("/camera/output/", callback=on_signed)
How It Works
- Your signing key's encrypted private key is fetched once from the backend
- Decrypted locally using the Fernet key (never sent back)
- Images are watermarked and signed entirely on your machine
- Only hashes + metadata are POSTed to the backend for registration + blockchain anchoring
- Your actual image/video bytes never leave your infrastructure
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
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 tectravision_sdk-0.1.0.tar.gz.
File metadata
- Download URL: tectravision_sdk-0.1.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba826b69d0f3b48ed6df913e202ec95eb810b9d3c03bf545b3554cbc44b447ef
|
|
| MD5 |
995d60a8fba17e4b6be0574c0e6b1bd5
|
|
| BLAKE2b-256 |
89e62c12acf505b1e3c18d5b44c378920e3f80095e6af3cdba90127d6f8d78dc
|
File details
Details for the file tectravision_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tectravision_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58e47f98289018bce40c60a7cbdc1bce11b6eec14ab1b4b37a0337b008caa52c
|
|
| MD5 |
81ca96277161a3e96a8f2c20f3e116b4
|
|
| BLAKE2b-256 |
e852c6989400a22b8435c6659089c1d9a7cdc690d0108903ec977fc2a837945b
|