Skip to main content

open-pseudonym (Python)

Keep personal data away from AI models without making them worse at the task. Task-aware stand-ins, local restore, secret handles that are filled in outside the model, and signed receipts for every request that leaves.

pip install open-pseudonym              # core, needs only cryptography
pip install "open-pseudonym[proxy]"     # local proxy for OpenAI and Anthropic style APIs
pip install "open-pseudonym[mcp]"       # MCP middleware and gateway
pip install "open-pseudonym[browser]"   # Playwright handle filler
from open_pseudonym import Session, Source

s = Session("draft_reply")
masked = s.mask("Hi Dana,\nyour Acme code is 482913.", Source(sender="no-reply@acme.com"))
print(masked.text)                                   # Hi <a fake name>, ... {{OTP_1}}.
print(s.restore(masked.text, reveal_handles=True))   # exactly the original

Try opn demo. The specification, guides and test vectors live at https://github.com/Ishan2036924/open-pseudonym.

This is pseudonymisation, not anonymisation: what reaches the model is still personal data in law. Apache-2.0.

Metadata

Release files for open-pseudonym 0.5.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 open-pseudonym 0.5.0
File Size Uploaded Provenance Actions
open_pseudonym-0.5.0.tar.gz 174.3 kB With provenance Details for open_pseudonym-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for open-pseudonym 0.5.0
File Interpreter ABI Platform Actions
open_pseudonym-0.5.0-py3-none-any.whl Python 3 none any Details for open_pseudonym-0.5.0-py3-none-any.whl

Total release size: 318.7 kB

Release files / open_pseudonym-0.5.0.tar.gz

Download URL open_pseudonym-0.5.0.tar.gz
Size 174.3 kB
Tags Source
SHA-256 checksum
How to use checksums
56a81dd06fc46d3ae6357de58f0ea27a093a40fd14b8c0f1109d6b0bdd4d62e9
BLAKE2b-256 checksum
How to use checksums
bbc1af9e2ca7f52b403d9bf96e1bd6ccf8f90fd50fbd0cd82ed176562cc02ef7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

Release files / open_pseudonym-0.5.0-py3-none-any.whl

Download URL open_pseudonym-0.5.0-py3-none-any.whl
Size 144.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f97802e6636e78f7affe5689f207f4097da5ff80b52b3405fb66496127efb1b
BLAKE2b-256 checksum
How to use checksums
95b70e5e5e2e8ce6d3408767deb1a5ace34cc67cbce564e2d546c2f2a22a497e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

Security for open-pseudonym 0.5.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for open_pseudonym-0.5.0.tar.gz

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 Nov 21, 2026.

Transparency log

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