Skip to main content

fotovid

Typed Python client for the Fotovid media API — run ffmpeg-style operations (watermark, trim, extract audio, thumbnails…) over one HTTPS call, with zero dependencies (standard library only).

Install

pip install fotovid

Usage

import os
from fotovid import Fotovid

client = Fotovid(api_key=os.environ["FOTOVID_API_KEY"])

result = client.video.watermark(
    source_url="https://cdn.example.com/clip.mp4",
    watermark_type="image",
    watermark_image_url="https://cdn.example.com/logo.png",
    position="bottom-right",
    opacity=0.8,
)
print(result.url)  # presigned URL to the finished file — store your own copy

Operations

Method Endpoint
client.video.watermark(...) POST /v1/video/watermark
client.image.watermark(...) POST /v1/image/watermark
client.video.trim(...) POST /v1/video/trim
client.video.extract_audio(...) POST /v1/video/extract-audio
client.audio.trim(...) POST /v1/audio/trim
client.video.thumbnail(...) POST /v1/video/extract-cover
client.video.probe(...) POST /v1/video/probe

Parameter names match the API 1:1. Every media operation returns a MediaResult (id, type, url, expires_at, duration); probe returns a ProbeResult with video metadata.

Idempotency

The billed endpoints require an Idempotency-Key header — the client sends a fresh key per call automatically. To safely retry without being charged twice, pass the same key both times:

key = "my-unique-key"
client.video.watermark(source_url=url, idempotency_key=key)
# a retry with the same key replays the original result instead of re-charging
client.video.watermark(source_url=url, idempotency_key=key)

Config

Fotovid(
    api_key="p6_<key_id>:<secret>",  # or set FOTOVID_API_KEY
    base_url="https://api.fotovid.co",  # optional
    timeout=60.0,  # optional, seconds
)

License

MIT

Metadata

Release files for fotovid 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fotovid 0.1.1
File Size Uploaded
fotovid-0.1.1.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fotovid 0.1.1
File Interpreter ABI Platform
fotovid-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.3 kB

Release files / fotovid-0.1.1.tar.gz

Download URL fotovid-0.1.1.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
72af57a22bffcc9f03718a3979af062f486f301b0df8a6e5c041e0725cc65ffb
BLAKE2b-256 checksum
How to use checksums
f4caa219d828d193322e35f13ddf3844b27a5a9e8c37a7dfce3a86a96c7c6f5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.

Transparency log

Release files / fotovid-0.1.1-py3-none-any.whl

Download URL fotovid-0.1.1-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f538d8d9e54b401d80095b26d92c81c2e0969acec942a4b63db2f394bd86d3a6
BLAKE2b-256 checksum
How to use checksums
1bc8131b2a4d950d8f57ac22cf9c2d26f150885d3087b5c182a02d494d55629e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.

Transparency log

Release history Release notifications | RSS feed

1.0.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page