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
Metadata
Release files for tectravision-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tectravision_sdk-0.1.0.tar.gz | 8.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tectravision_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.4 kB
Release files / tectravision_sdk-0.1.0.tar.gz
| Download URL | tectravision_sdk-0.1.0.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba826b69d0f3b48ed6df913e202ec95eb810b9d3c03bf545b3554cbc44b447ef
|
|
BLAKE2b-256 checksum How to use checksums |
89e62c12acf505b1e3c18d5b44c378920e3f80095e6af3cdba90127d6f8d78dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / tectravision_sdk-0.1.0-py3-none-any.whl
| Download URL | tectravision_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58e47f98289018bce40c60a7cbdc1bce11b6eec14ab1b4b37a0337b008caa52c
|
|
BLAKE2b-256 checksum How to use checksums |
e852c6989400a22b8435c6659089c1d9a7cdc690d0108903ec977fc2a837945b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|