Skip to main content

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

  1. Your signing key's encrypted private key is fetched once from the backend
  2. Decrypted locally using the Fernet key (never sent back)
  3. Images are watermarked and signed entirely on your machine
  4. Only hashes + metadata are POSTed to the backend for registration + blockchain anchoring
  5. Your actual image/video bytes never leave your infrastructure

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

tectravision_sdk-0.1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tectravision_sdk-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

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

Hashes for tectravision_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ba826b69d0f3b48ed6df913e202ec95eb810b9d3c03bf545b3554cbc44b447ef
MD5 995d60a8fba17e4b6be0574c0e6b1bd5
BLAKE2b-256 89e62c12acf505b1e3c18d5b44c378920e3f80095e6af3cdba90127d6f8d78dc

See more details on using hashes here.

File details

Details for the file tectravision_sdk-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tectravision_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58e47f98289018bce40c60a7cbdc1bce11b6eec14ab1b4b37a0337b008caa52c
MD5 81ca96277161a3e96a8f2c20f3e116b4
BLAKE2b-256 e852c6989400a22b8435c6659089c1d9a7cdc690d0108903ec977fc2a837945b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page