Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Content Moderation Python Packages

Python packages with the GitHub topic content-moderation. Sorted by monthly downloads, with stars and forks.
vstorm-co
pydantic-ai-shields

Guardrail capabilities for Pydantic AI — cost tracking, prompt injection detection, PII filtering, secret redaction, tool permissions, and async guardrails. Built on pydantic-ai's native capabilities API.

244K 94 11
Lips7
matcher-py

A high-performance matcher designed to solve LOGICAL and TEXT VARIATIONS problems in word matching, implemented in Rust.

26K 19 1
GLINCKER
glin-profanity

Open-source ML-powered profanity filter with TensorFlow.js toxicity detection, leetspeak & Unicode obfuscation resistance. 21M+ ops/sec, 23 languages, React hooks, LRU caching. npm & PyPI.

9K 70 10
modaic-ai
modaic

Python SDK for Modaic

7K 31 3
modaic-ai
modaic-client

Python SDK for Modaic

3K 31 3
FlacSy
badwords-py

Multilingual profanity filter with a Rust core — Python, JavaScript/WASM and Rust, with optional multi-label toxicity scoring

3K 24 3
fusiontechstrategies
bedrock-guardrail-firewall

Evaluate and redact sensitive AI content locally before optional Bedrock Guardrails and Presidio controls, with fail-closed policy decisions and metadata-only evidence.

2K 3 0
MaxMLang
pytector

Easy to use LLM Prompt Injection Detection and Prompt Input Sanitization / Detector Python Package with support for local models, API-based safeguards, safeguard for tool calls, and LangChain guardrails.

2K 45 23
irfanalidv
toxic-comment-classifier

Pre-trained BiLSTM classifier that scores comments for six kinds of toxicity (toxic, severe_toxic, obscene, threat, insult, identity_hate). Works offline, one line to use.

1K 2 0
Data-ScienceTech
forcefield

Open ForceField — zero-dependency LLM & agent control library. Prompt-injection detection, PII redaction, tool governance, evals in 3 lines of Python. Apache-2.0.

1K 1 0
frod27
overwing

Overwing SDK for Python: guardrails for LLM output. Typed client + OpenAI Agents SDK guardrails that score every message before it ships.

1K 0 0
karammm
safetype

Rule-based content moderation (profanity, hate, harassment) for Python servers. Same engine as SafeType.js.

1K 3 0
sfwbot
sfwapi

Official Python SDK for the SFW API: NSFW and nudity detection for images, GIFs and videos (sync and async)

969 0 0
whitecircle
whitecircle

Official Python SDK for the White Circle API: check messages, tool calls, agent steps and images against your Policies

850 15 0
AetherLabCo
aetherlab

Official AetherLab Python SDK - AI guardrails, LLM safety, and content moderation via the AetherLab compliance API.

770 2 0
anthalehq
anthale

The official Python library for the anthale API

734 1 0
atliq
guardex-ai

Python SDK for LLM guardrails with safety classification, PII detection, prompt injection defense, and grounding checks. Protect AI applications locally with zero external APIs, streaming support, and plug-and-play integration for any LLM.

623 28 72
Tuteliq
tuteliq

Official Python SDK for Tuteliq, child-safety AI: detect grooming, bullying, self-harm, fraud and unsafe content, and verify age and identity.

591 1 0
fattaillabs
avmosaic

Find sensitive regions in images and videos and cover them with a mosaic. CLI and Python, Windows/macOS/Linux

563 3 1
vstorm-co
pydantic-ai-middleware

Guardrail capabilities for Pydantic AI — cost tracking, prompt injection detection, PII filtering, secret redaction, tool permissions, and async guardrails. Built on pydantic-ai's native capabilities API.

516 94 11
aryan-tah
openspective

Open-source, self-hosted drop-in replacement for Google's Perspective API (shutting down Dec 31, 2026). Same endpoints and JSON, open multilingual models, one docker run.

491 1 0
Data-ScienceTech
langchain-forcefield

Open ForceField — zero-dependency LLM & agent control library. Prompt-injection detection, PII redaction, tool governance, evals in 3 lines of Python. Apache-2.0.

460 1 0
ohernandezdev
jevmod

Moderation for communities and apps, powered by Jev (TypeSafe): probabilities per category, thresholds you own. Discord/Telegram/Reddit bots, CLI, Python, npm, HTTP API, MCP.

458 1 1
Raid-AI-Corporation
raidxai

Official TypeScript and Python SDKs for the Raid AI detection API

448 0 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology