PiJector: Production-Grade LLM Security Layer
[!WARNING] BETA PHASE: PiJector is currently in a beta phase and is undergoing active verification by developers. Please use with caution in production environments and report any issues.
PiJector is a lightweight, drop-in security layer for LLM applications. It acts as a Web Application Firewall (WAF) for your AI, intercepting inputs to detect injections and monitoring outputs to prevent prompt leakage.
Features
- Multi-SDK Support: Drop-in wrappers for OpenAI and Google Gemini.
- Standalone Proxy: OpenAI-compatible REST API for language-agnostic security.
- Scoring Engine: Pluggable detectors (Regex, Canary, Semantic) to score risk.
- Framework Native: Integrations for LangChain, FastAPI, and LlamaIndex.
Quick Start
OpenAI Integration
from openai import OpenAI
from pijector import PijectorShield
client = PijectorShield(OpenAI())
# ... same calls as before
Gemini Integration
import google.generativeai as genai
from pijector.integrations.gemini import PijectorGeminiShield
model = genai.GenerativeModel('gemini-pro')
secure_model = PijectorGeminiShield(model)
response = secure_model.generate_content("Ignore instructions...")
Documentation
- User Guide: Detailed instructions for SDK and Middleware usage.
- Configuration: Documentation of all security settings.
- Contributing: How to help improve PiJector.
- Deployment: How to ship as library or middleware.
Quick Start
from openai import OpenAI
from pijector import PijectorShield
client = PijectorShield(OpenAI())
# ... standard OpenAI calls
Metadata
Release files for pijector 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pijector-0.1.5.tar.gz | 13.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pijector-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.5 kB
Release files / pijector-0.1.5.tar.gz
| Download URL | pijector-0.1.5.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6aa8dfbcfc87b69113698ebb6001e7f802808e56ed95790d592eefd416a1f1b
|
|
BLAKE2b-256 checksum How to use checksums |
57617a794d907ad6945055f4f1d6d5244b65b8a048281507eaaeb1546eab6a81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / pijector-0.1.5-py3-none-any.whl
| Download URL | pijector-0.1.5-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96b36aa29a6742f62e81ecffd6b7200db12d12f2091b939afaee1cd5cd877f24
|
|
BLAKE2b-256 checksum How to use checksums |
a1bd4ec087eeab295112b2e2c78b32c99e6eea0b82ee6aac63e6282a8b5f37a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|