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.3.1.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.3.1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mawlaia_pii_vault-0.3.1.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.3.1.tar.gz
Algorithm Hash digest
SHA256 72ed19201517936048b8b862f3f0520e6b20095e6d3d6cb3249b1f0a026d0b50
MD5 3cef7770ad18c32e07274b0c4a9c4f86
BLAKE2b-256 7f5b4ca07d6ad902228749c03a4521f9c0e95efba7068af4de6ba61fd9716c44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mawlaia_pii_vault-0.3.1-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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b3cbe09a8b711c57cc45e8bbf94705682172ed7307ffb319bb2530e09cf3b87c
MD5 2192bc81e037c5e5b36018fc9f636588
BLAKE2b-256 4a963260816895ed3c983aa2edf5b0052b10ac702ef7d2ce1163d8cd0c2b1be8

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