Metadata-Version: 2.4
Name: ceil-dlp
Version: 1.1.2
Summary: Data Loss Prevention plugin for LiteLLM: Block and mask PII in LLM requests with zero infrastructure overhead.
Author-email: Dorcha Inc <partners@getdorcha.com>
License: MIT
Project-URL: Homepage, https://github.com/dorcha-inc/ceil-dlp
Project-URL: Documentation, https://github.com/dorcha-inc/ceil-dlp#readme
Project-URL: Repository, https://github.com/dorcha-inc/ceil-dlp
Keywords: dlp,pii,litellm,security,privacy,llm,ai,artificial intelligence,data loss prevention,data protection,data security,data privacy,ai security,ai privacy,compliance,hipaa,pci-dss,gdpr,ccpa
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: litellm>=1.0.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: presidio-analyzer>=2.2.0
Requires-Dist: presidio-image-redactor>=0.0.50
Requires-Dist: pillow>=10.0.0
Requires-Dist: python-json-logger>=2.0.0
Requires-Dist: spacy>=3.7.0
Requires-Dist: typer>=0.9.0
Provides-Extra: dev
Requires-Dist: black>=23.0.0; extra == "dev"
Requires-Dist: mypy>=1.0.0; extra == "dev"
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"
Requires-Dist: types-PyYAML>=6.0.0; extra == "dev"
Requires-Dist: types-setuptools>=69.0.0; extra == "dev"
Dynamic: license-file

<div align="center">
  <h1>ceil-dlp</h1>
  <p>DLP plugin for LiteLLM for seamlessly managing PII in LLM interactions.</p>
</div>

<p align="center">
  <a href="https://www.python.org/"><img src="https://img.shields.io/badge/Python-3.11+-3776AB?style=flat&logo=python&logoColor=white" alt="Python Version"></a>
  <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-green.svg" alt="License"></a>
  <a href="https://pypi.org/project/ceil-dlp/"><img src="https://img.shields.io/pypi/v/ceil-dlp?color=blue" alt="PyPI Version"></a>
  <a href="https://github.com/dorcha-inc/ceil-dlp/actions/workflows/build.yml"><img src="https://github.com/dorcha-inc/ceil-dlp/actions/workflows/build.yml/badge.svg" alt="Build"></a>
  <a href="https://codecov.io/gh/dorcha-inc/ceil-dlp"><img src="https://codecov.io/gh/dorcha-inc/ceil-dlp/branch/main/graph/badge.svg" alt="Coverage"></a>
</p>

`ceil-dlp` is a Data Loss Prevention (DLP) plugin for [LiteLLM](https://github.com/BerriAI/litellm) that automatically detects and protects Personally Identifiable Information (PII) in LLM requests. This includes PII in both text and images (pdf support is on the way). It blocks, masks, or logs sensitive data before it reaches your LLM provider. This helps prevent you from leaking your secrets, API keys, and other sensitive information. It also helps you ensure compliance with data privacy regulations like HIPAA, PCI-DSS, GDPR, and CCPA.

## Usage

See [QUICKSTART.md](QUICKSTART.md) for detailed installation and usage instructions.

The setup is as simple as installing:

```bash
uv pip install ceil-dlp
```

and enabling in LiteLLM:

```python
from litellm import proxy
from ceil_dlp import setup_litellm

litellm_config = setup_litellm()
proxy(host="0.0.0.0", port=4000, **litellm_config)
```

And you're done!

## Documentation

- See the [Quick Start Guide](QUICKSTART.md) for installation and basic usage
- Take a look at the [example configuration file](config.example.yaml).
