Skip to main content

PiJector: Production-Grade LLM Security Layer

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

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)

Source distribution for pijector 0.1.5
File Size Uploaded Provenance Actions
pijector-0.1.5.tar.gz 13.4 kB Without provenance Details for pijector-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pijector 0.1.5
File Interpreter ABI Platform Actions
pijector-0.1.5-py3-none-any.whl Python 3 none any Details for pijector-0.1.5-py3-none-any.whl

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

Security for pijector 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page