Skip to main content

deepmark: Model-agnostic, robust, and compliance-ready text watermarking library for LLMs and content platforms.

Project description

deepmark Python SDK

Overview

A model-agnostic, robust, and compliance-ready text watermarking library for LLMs and content platforms. Supports both generation-time and post-processing watermark embedding, with detection tools for developers.

Features

  • Generation-time and post-generation watermarking
  • Model-agnostic (OpenAI, HuggingFace, custom LLMs)
  • Robust to paraphrasing, translation, and editing
  • Python SDK for easy integration
  • Batch detection, confidence scoring
  • Multilingual support (English, Spanish, French, German, Italian, Portuguese)

Installation

pip install -r requirements.txt

Usage

Marking Text

from deepmark import mark_text

# Mark text with a watermark
marked = mark_text("Hello world", key="your-secret-key", source_id="GPT-4")
print(marked)

Detecting Watermarks

from deepmark import detect_watermark

# Detect watermark in text
result = detect_watermark(marked)
print(result)
# Output: {'confidence_score': ..., 'source_id': ..., 'timestamp': ..., 'key_id': ..., 'tampering_likelihood': ...}

Extensibility

  • Add more languages by downloading spaCy models and updating synonym logic.
  • Add more metadata by extending the zero-width encoding.
  • Integrate with LLMs or pipelines by calling mark_text and detect_watermark.

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

deepmark-1.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

deepmark-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file deepmark-1.0.0.tar.gz.

File metadata

  • Download URL: deepmark-1.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for deepmark-1.0.0.tar.gz
Algorithm Hash digest
SHA256 81f5d5e32036290081134a505c581718e6b453002d2681b62aa0165a3948211e
MD5 8570f2fbbbfb5980ced96c6d3026bd1b
BLAKE2b-256 de76349f162552dc8d17b4bd7de6614447a20ac917860fc8786bd74569fbf2f4

See more details on using hashes here.

File details

Details for the file deepmark-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: deepmark-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for deepmark-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60bb45c652c401c0eab07adb577eb2871792f1ed307a5d2ba058229def42d4c4
MD5 fe2a1879e9f1213bc9d0f316464c910b
BLAKE2b-256 66a75972341d86a1137537ff592ce9af5ba0aa45bd23fdae2debecb7a9f45871

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