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_textanddetect_watermark.
License
MIT
Project details
Release history Release notifications | RSS feed
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81f5d5e32036290081134a505c581718e6b453002d2681b62aa0165a3948211e
|
|
| MD5 |
8570f2fbbbfb5980ced96c6d3026bd1b
|
|
| BLAKE2b-256 |
de76349f162552dc8d17b4bd7de6614447a20ac917860fc8786bd74569fbf2f4
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60bb45c652c401c0eab07adb577eb2871792f1ed307a5d2ba058229def42d4c4
|
|
| MD5 |
fe2a1879e9f1213bc9d0f316464c910b
|
|
| BLAKE2b-256 |
66a75972341d86a1137537ff592ce9af5ba0aa45bd23fdae2debecb7a9f45871
|