Skip to main content

Data Loss Prevention plugin for LiteLLM: Block and mask PII in LLM requests with zero infrastructure overhead.

Project description

ceil-dlp

DLP plugin for LiteLLM for seamlessly managing PII in LLM interactions.

Python Version License PyPI Version Build Coverage

ceil-dlp is a Data Loss Prevention (DLP) plugin for 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 for detailed installation and usage instructions.

The setup is as simple as installing:

uv pip install ceil-dlp

and enabling in LiteLLM by adding to your config.yaml:

litellm_settings:
  callbacks: ceil_dlp.ceil_dlp_callback.proxy_handler_instance

Then run: litellm --config config.yaml --port 4000

To customize behavior, create a ceil-dlp.yaml file and set the CEIL_DLP_CONFIG_PATH environment variable. See QUICKSTART.md for detailed configuration options.

And you're done!

Documentation

Developing

Contributions are always welcome!

Releasing a New Version

To release a new version of ceil-dlp:

  1. Update the version in pyproject.toml:

    version = "1.2.0"
    
  2. Commit the version change:

    git add pyproject.toml
    git commit -m "Bump version to 1.2.0"
    
  3. Create and push a git tag:

    git tag -a v1.2.0 -m "Release v1.2.0"
    git push && git push --tags
    
  4. The GitHub Actions workflow will automatically build the package and publish to PyPI when the tag is pushed

The publish workflow triggers on tags matching v* (e.g., v1.2.0). Make sure your changes are committed and pushed before creating the tag.

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

ceil_dlp-1.1.4.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

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

ceil_dlp-1.1.4-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file ceil_dlp-1.1.4.tar.gz.

File metadata

  • Download URL: ceil_dlp-1.1.4.tar.gz
  • Upload date:
  • Size: 34.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ceil_dlp-1.1.4.tar.gz
Algorithm Hash digest
SHA256 d3331a4f073ffc7402e25737de023c69018201fc969ea61a177ab86b3377114c
MD5 550e2003afd2e335ba8c7e18cbdf2221
BLAKE2b-256 e440cd5aa16eaa7481de1637d5e08414b221c470ed46516a4d1e7541fd050489

See more details on using hashes here.

File details

Details for the file ceil_dlp-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: ceil_dlp-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ceil_dlp-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c8f7b5b7ab14452c125266276d7c939ecfb856a16674aedb46bc45cfd286b43f
MD5 ec98b1ea6e29b14df825bb4fef61fdf5
BLAKE2b-256 18d2c9ac8377280e664fe4016d8034f81b9d92d63489aed733c52136b4018639

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