Skip to main content

A drop-in security layer for LLM applications (WAF for AI)

Project description

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

Quick Start

from openai import OpenAI
from pijector import PijectorShield

client = PijectorShield(OpenAI())
# ... standard OpenAI calls

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

pijector-0.1.4.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

pijector-0.1.4-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file pijector-0.1.4.tar.gz.

File metadata

  • Download URL: pijector-0.1.4.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for pijector-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2a8b611fbefd6bc0be5237ffc63971d5b9079ec1c3fb2762bc01b66ab708deee
MD5 25d80bea8309da422d9dbcdb30a74937
BLAKE2b-256 da00aeaf4e5237c1346934cf2b8ad6006480714a014499b640081c6a2cbc5e48

See more details on using hashes here.

File details

Details for the file pijector-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pijector-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for pijector-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 80b0bb73b1713bfcf7469182ff5362371d5df9b617619a7b853b0955afb0481c
MD5 9513cee12ef6b1e54767602d6dfe0f6b
BLAKE2b-256 11ebc2342d73425fd1496d4d70d59570f1ad9dc4b54f783997d4624ff53dcc39

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