prompt-injection-sanitizer

Deterministic, dependency-free prompt-injection defense: regex detection, Unicode normalization, anti-typoglycemia, anti-leetspeak, data-tag escaping, and risk scoring.

Installation

In a virtualenv (see these instructions if you need to create one):

pip3 install prompt-injection-sanitizer

Dependencies

  • None

Releases

Version Released Bookworm
Python 3.11
Trixie
Python 3.13
Files
0.1.1 2026-06-18    
0.1.0 2026-06-18    

Issues with this package?

Page last updated 2026-09-03 00:08:54 UTC