Skip to main content

PII tokenization SDK and proxy for AI pipelines

Project description

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

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

mawlaia_pii_vault-0.4.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

mawlaia_pii_vault-0.4.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file mawlaia_pii_vault-0.4.0.tar.gz.

File metadata

  • Download URL: mawlaia_pii_vault-0.4.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/25.3.0

File hashes

Hashes for mawlaia_pii_vault-0.4.0.tar.gz
Algorithm Hash digest
SHA256 14d28626cbe940dd9c04f112582df3c079f7c0c72a5edce36c5d461db9de603f
MD5 f4a076a440b2e6a6e16c684b6135d9da
BLAKE2b-256 7b132917f2c95c5e3138ec5402394b73124c0b0f39e29eb603738278fa3b535a

See more details on using hashes here.

File details

Details for the file mawlaia_pii_vault-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: mawlaia_pii_vault-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/25.3.0

File hashes

Hashes for mawlaia_pii_vault-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4e7740a9d205b77d1c75d2cf6c12a341b30091850b33e25bff39f22d704e984
MD5 f8af4d8e2fe58143c757500b35394997
BLAKE2b-256 13f3e9799ce15e4ba3788f7c9b6756a36f02a92d9c56851727dd6ff70fc0f644

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