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.4.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.4.0
File Size Uploaded Provenance Actions
open_pseudonym-0.4.0.tar.gz 169.9 kB With provenance Details for open_pseudonym-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 311.9 kB

Release files / open_pseudonym-0.4.0.tar.gz

Download URL open_pseudonym-0.4.0.tar.gz
Size 169.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c885416a210dcc2ec58703588f9fe86149b3e265bede2510db44308d0ad58ffc
BLAKE2b-256 checksum
How to use checksums
c240e2f4f791621f7262316b3a005cb53fb086ad4a7f7eb130adb7df1b63c94d
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.4.0-py3-none-any.whl

Download URL open_pseudonym-0.4.0-py3-none-any.whl
Size 142.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
883e1c37f59713b5284cdf40e1ba20a4336a09d27980b5d18941fcafa9f4a701
BLAKE2b-256 checksum
How to use checksums
3f3be285e657f3719710f93e6243371d7c1c6e45b1c202f8ed6fa53822f37681
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.4.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.4.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