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.2.0.tar.gz (8.8 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.2.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mawlaia_pii_vault-0.2.0.tar.gz
  • Upload date:
  • Size: 8.8 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.2.0.tar.gz
Algorithm Hash digest
SHA256 b196ef6f487522774971f90503b044041149901e1204787f24ddd6cc7a6b32da
MD5 dcfcd699e6b6486915efd98866061579
BLAKE2b-256 a77a54050d275010debae17805fbf485b1a26e9f4e1e10b216201c803a50ca09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mawlaia_pii_vault-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b7acb2b61e2bc37a2f86100683172faf0d500d1d93ce591028db5e270f9f0ad
MD5 dd3092d785d2b05993e07c64e5d6c7a8
BLAKE2b-256 72cbf469ec8eff9f835561c5f5b549ad941660a5b90fc80944e46a10387839f6

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