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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mawlaia_pii_vault-0.1.0.tar.gz
  • Upload date:
  • Size: 7.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.1.0.tar.gz
Algorithm Hash digest
SHA256 c8dc12d8da56c2d7f78263d62955298cbb4735c946a3f418bc2328bc9f67ddc8
MD5 7dbaedf0de7ad5c930f101efe7e37410
BLAKE2b-256 aa4aa4373ad926eac89ab8e36018c551ccb68fd617a392a151606252042248bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mawlaia_pii_vault-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4adc8bf587db85bfb14a1122bdd435e2114feca4bbbcf8a0fa2ad079136c6394
MD5 e2b7ea84045c92719037833356040036
BLAKE2b-256 91635bc36ef22e7b536d4921a6020725e87bf2c93bb13c7a916b0e5ffbc9d0dd

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