Python SDK for the Verda Enterprise Watermarking API
Project description
Verda Python SDK
Python SDK for the Verda Enterprise Watermarking API.
Embed imperceptible watermarks into images, videos, and audio. Decode watermarks to trace content back to its source.
Install
pip install verda
Quick Start
from verda import VerdaClient
client = VerdaClient(api_key="vk_...")
# Encode a watermark into a local file
result = client.encode("photo.jpg")
print(result.watermark_id) # 40-bit watermark identifier
print(result.download_url) # Download the watermarked file
# Encode from a URL
result = client.encode(url="https://cdn.example.com/video.mp4")
# Decode / verify a watermark
result = client.decode("suspect.jpg")
print(result.match) # True if watermark found
print(result.watermark_id) # Original watermark ID
# Check credits
credits = client.credits()
print(f"${credits.balance_dollars:.2f} remaining")
Configuration
client = VerdaClient(
api_key="vk_...", # or set VERDA_API_KEY env var
base_url="https://api.verda.ai/api/v2/enterprise", # default
poll_interval=5, # seconds between job polls
poll_timeout=300, # max seconds to wait for a job
)
Async Jobs
By default, encode() and decode() wait for the job to complete. For long-running jobs (video), you can use wait=False:
# Start encode without waiting
job_id = client.encode("long_video.mp4", wait=False)
# Check status later
job = client.get_job(job_id)
print(job.status) # QUEUED, PROCESSING, COMPLETED, or FAILED
# Or poll manually
import time
while True:
job = client.get_job(job_id)
if job.status in ("COMPLETED", "FAILED"):
break
time.sleep(10)
Supported Formats
| Type | Formats |
|---|---|
| Image | jpg, png, webp, bmp, gif, tiff, heic |
| Video | mp4, mov, avi, mkv, webm |
| Audio | mp3, wav, flac, aac, ogg, m4a |
Pricing
| Operation | Price | Free Tier |
|---|---|---|
| Image encode | $0.005/file | 100/month |
| Audio encode | $0.01/minute | 10 min/month |
| Video encode | $0.10/minute | 10 min/month |
| Image decode | $0.001/file | 1,000/month |
| Audio decode | $0.001/minute | 1,000/month |
| Video decode | $0.001/minute | 1,000/month |
License
MIT
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
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 verda_watermark-0.1.0.tar.gz.
File metadata
- Download URL: verda_watermark-0.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05f54340e9f9e6a31ac54e7b59277777ef6cded01eb3cea91705f5aaa3d5b343
|
|
| MD5 |
2afa41a1c97c4f728a9ba11b6f67337e
|
|
| BLAKE2b-256 |
3e992788a169dde53e8bc50b34bc86958135de093f5d54b104596aecee88d3df
|
File details
Details for the file verda_watermark-0.1.0-py3-none-any.whl.
File metadata
- Download URL: verda_watermark-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c2c16ca706baffa9c42e41d143a50688d333ac589fb916bce91a88d9c9024ef
|
|
| MD5 |
5266158c03f2612d46ff0fc7794279f0
|
|
| BLAKE2b-256 |
3bb652798948a1c53ed2788a7bd9fd90cd13397d815e9e98b8c23c18324a1616
|