Skip to main content

markproof

Python client for the Markproof API — EU AI Act Article 50 watermarking and verification in one call. Thin wrapper over requests.

Install

pip install markproof

Usage

from markproof import Markproof

client = Markproof(api_key="lt_live_...")

marked = client.mark("generated.png", generator_name="my-app", model_name="my-model-v1")
print(marked.watermark_code, marked.verify_url)
with open("generated-marked.png", "wb") as f:
    f.write(marked.file)

result = client.verify("generated-marked.png")
print(result.summary)

API

  • Markproof(api_key, base_url=DEFAULT_BASE_URL) — base_url defaults to the production API; override for local dev.
  • client.mark(file, filename=None, generator_name=None, model_name=None, response_format="file") → MarkResult — file is a path (str/os.PathLike) or raw bytes (in which case filename is required). response_format="file" (default) returns the marked bytes inline (result.file/result.content_type); "url" returns a short-lived signed download URL instead (result.file_url, ~1 hour — download promptly rather than caching it). Either way you also get asset_id, watermark_code, verify_url, c2pa_manifest_label.
  • client.verify(file, filename=None) → VerifyResult — watermark/c2pa detection results, matched_asset if the watermark matches a record in Markproof's database, and a human-readable summary.
  • client.get_asset(asset_id) → Asset — requires an API key on the same project that created the asset.

All methods raise MarkproofError (with .status and .body) on a non-2xx response.

Metadata

Release files for markproof 0.1.0

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

Source distribution (sdist)

Source distribution for markproof 0.1.0
File Size Uploaded Provenance Actions
markproof-0.1.0.tar.gz 6.8 kB Without provenance Details for markproof-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 12.8 kB

Release files / markproof-0.1.0.tar.gz

Download URL markproof-0.1.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
33935919b6f1ff7b9c43086d5b1e490c211ff978fd2a5c7b7aafe6a16bc290b4
BLAKE2b-256 checksum
How to use checksums
76eec8db6c1a9ece019ef3d4e58f194bc92e4ad27cbf5786d700d5439c52857f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / markproof-0.1.0-py3-none-any.whl

Download URL markproof-0.1.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9e0811e1a26eddb22e0299a5a7db454590a231b7305d82a5789c4b794910956
BLAKE2b-256 checksum
How to use checksums
902fffa2497d2436a1b0ce1363df9db61dae90d9ba8620861abba0f4120b12d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for markproof 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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