Skip to main content

Thin client for anonymAI — DSGVO-safe PII anonymization before sending text to LLMs.

Project description

anonymAI — client

DSGVO-konforme Anonymisierung, bevor Text an ein externes LLM geht — und die echten Werte danach lokal wieder eingesetzt. So nutzt ihr ChatGPT & Co., ohne dass personenbezogene Daten die EU verlassen.

pip install anonymai

Kostenlosen Trial-Key (10 Anfragen) anfordern: https://www.anonymai.de/docs

from anonymai import Guard

g = Guard(trial_key="DEIN_TRIAL_KEY")          # oder ANONYMAI_TRIAL_KEY setzen
clean, mapping = g.scrub("Bitte an Anna Müller, IBAN DE89370400440532013000.")
# clean == "Bitte an ⟦PII_PERSON_01⟧, IBAN ⟦PII_IBAN_01⟧."

answer = call_your_llm(clean)                  # das LLM sieht nur Platzhalter
final = g.restore(answer, mapping)             # echte Werte lokal wieder einsetzen
  • scrub läuft im Trial über die anonymAI-EU-API. Das Mapping (Platzhalter → Originalwert) bleibt bei euch; restore ist eine reine lokale Ersetzung.
  • Der gekaufte On-Prem-Client bietet dieselbe Guard-API, läuft aber vollständig lokal — dann verlässt gar nichts euer Netz. Nur trial_key gegen license tauschen.
  • Dieses Paket enthält keine Erkennungs-Engine — es spricht nur mit der API.

© Allweknow OÜ · https://www.anonymai.de

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

anonymai-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

anonymai-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anonymai-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for anonymai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2ceb43200302455546f6cbfda688fc4eb27dad0af10d3837c8fe8a38da2c8a8b
MD5 0dcac1ba5fd87e6b0104fd7aedfa6c0b
BLAKE2b-256 9d262ae20dec20e0b8157db3b7ba3fd68689f5bb2236f2cf62dac9f2cbf43b0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anonymai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for anonymai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c14e5d948786539d9a73ef2e7438d972d2839ad397ef3314ad02bbe463030e31
MD5 012eb5db2baebc1d67268afbd4ba6c2d
BLAKE2b-256 1e4c62cd6aba0617ef5c18c73a2adae07f43261d9cd73248460cbc8957c417cf

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