Skip to main content

pii-vault

PII tokenization SDK and proxy for AI pipelines.

Every AI feature you ship today silently sends customer data to LLM providers. pii-vault sits between your application and any LLM API — tokenizing PII outbound, re-hydrating inbound — so sensitive data never leaves your infrastructure.

from pii_vault import SafeOpenAI

client = SafeOpenAI(api_key="...", vault_key="...")

# PII is tokenized before leaving your server, re-hydrated in the response
response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Summarize the case for John Smith, john@acme.com"}]
)

Status

🚧 Early development. Star to follow progress.

What it does

  • Deterministic tokenization — names, emails, phones, addresses, medical IDs → opaque tokens
  • Drop-in proxy — replace OpenAI() with SafeOpenAI(), same interface, zero architecture change
  • Multi-provider — OpenAI, Anthropic, Google, and more
  • Regional vault — EU and US residency, GDPR-ready from day one
  • DSAR automation — one-call data subject export and deletion
  • Format-preserving — emails stay email-shaped, phones stay phone-shaped

Roadmap

  • Python SDK
  • TypeScript SDK
  • Self-hostable vault
  • Hosted service (mawlaia.com)
  • SOC 2 Type II
  • HIPAA BAA

License

MIT

Metadata

Release files for mawlaia-pii-vault 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 mawlaia-pii-vault 0.4.0
File Size Uploaded Provenance
mawlaia_pii_vault-0.4.0.tar.gz 9.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mawlaia-pii-vault 0.4.0
File Interpreter ABI Platform
mawlaia_pii_vault-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.9 kB

Release files / mawlaia_pii_vault-0.4.0.tar.gz

Download URL mawlaia_pii_vault-0.4.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
14d28626cbe940dd9c04f112582df3c079f7c0c72a5edce36c5d461db9de603f
BLAKE2b-256 checksum
How to use checksums
7b132917f2c95c5e3138ec5402394b73124c0b0f39e29eb603738278fa3b535a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.3 Darwin/25.3.0

Release files / mawlaia_pii_vault-0.4.0-py3-none-any.whl

Download URL mawlaia_pii_vault-0.4.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4e7740a9d205b77d1c75d2cf6c12a341b30091850b33e25bff39f22d704e984
BLAKE2b-256 checksum
How to use checksums
13f3e9799ce15e4ba3788f7c9b6756a36f02a92d9c56851727dd6ff70fc0f644
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.3 Darwin/25.3.0

Security for mawlaia-pii-vault 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.

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