Skip to main content

Anonymizes personally identifiable information for Large Language Model APIs

Project description

anonLLM: Anonymize Personally Identifiable Information (PII) for Large Language Model APIs

License: MIT

anonLLM is a Python package designed to anonymize personally identifiable information (PII) in text data before it's sent to Language Model APIs like GPT-3. The goal is to protect user privacy by ensuring that sensitive data such as names, email addresses, and phone numbers are anonymized.

Features

Anonymize names Anonymize email addresses Anonymize phone numbers Support for multiple country-specific phone number formats Reversible anonymization (de-anonymization) Installation

To install anonLLM, run:

pip install anonLLM

Quick Start

Here's how to get started with anonLLM:

from anonLLM import OpenaiLanguageModel


## Anonymize a text
text = "My name is Alice Johnson, email: alice.johnson@example.com, phone: +1 234-567-8910."

## Anonymization is handled under the hood
llm = OpenaiLanguageModel(api_key="your_openai_api_key_here")
response = llm.generate(text)

print(response)

Contributing

We welcome contributions!

License

This project is licensed under the MIT License. See the LICENSE.md file for details.

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

anonLLM-0.1.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

anonLLM-0.1.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file anonLLM-0.1.1.tar.gz.

File metadata

  • Download URL: anonLLM-0.1.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for anonLLM-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ba2aa60f7add2eca4ae0dc88d57cf1a26e9b850a0dd55d2714b97ecb21b81dc1
MD5 abdcb8a297d6c37ed1531db33811a285
BLAKE2b-256 f6d10320f31ea1e2ab4f2cc03c5862db02c5aeddd636213a8fdf5912d595269e

See more details on using hashes here.

File details

Details for the file anonLLM-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: anonLLM-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for anonLLM-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3fda821d85d05e6bd2c7099c70ef0138215f4254c39ee5577ed53ce111c1ba41
MD5 3d2ecb865e0b73043b0974b8b5279a42
BLAKE2b-256 6fa18c5834a0d5a5cd74898adb098d0416bc4e24f07ade1d1c1cbb1854308086

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page