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.0.tar.gz (9.1 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.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mawlaia_pii_vault-0.3.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mawlaia_pii_vault-0.3.0.tar.gz
Algorithm Hash digest
SHA256 39d9c0a5608cd0f8eca9ac336af44e5a2642f5eac54e396d901132daae0267c9
MD5 e53b2eb77f9c5f9d1d471f8d968a1437
BLAKE2b-256 84a07165451b1371e2c05f75d11f8c8f7bc31dc3e9b509eb5aa6b41891281888

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mawlaia_pii_vault-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f2b95e8c12668d8b760e9ac37cd51adde78063e5493dbcc93a35b44be9f1484
MD5 0091c1ed52c9a2391568ddea5d9c1c5e
BLAKE2b-256 cd545e7b419cf3520bdfaab80d5ea57ead9a344e0637a4250e32341dcdc69816

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