title: Module Overview
Module Overview
Each zerodep module is a self-contained single .py file that you can copy directly into your project. No pip install required at runtime.
Module Status
All Modules
Web & Networking
| Module |
Description |
Replaces |
Benchmark Against |
| httpclient |
Sync + async REST client with connection pooling, proxy, and auth |
requests, httpx, urllib3, aiohttp (client) |
httpx |
| sse |
Server-Sent Events client with auto-reconnect |
sseclient-py, aiohttp-sse-client, httpx-sse |
httpx-sse |
| httpserver |
Async HTTP server with decorator-based routing, streaming, and static files |
flask (lightweight), microdot, bottle, starlette (basic), aiohttp (server) |
flask / microdot / bottle |
| useragent |
Lightweight Chrome/Edge User-Agent generator with Client Hints |
fake-useragent, ua-generator, user-agents |
ua-generator |
| websocket |
RFC 6455 WebSocket client with sync + async support |
websocket-client, websockets |
websockets |
Agent Protocols
| Module |
Description |
Replaces |
Benchmark Against |
| jsonrpc |
JSON-RPC 2.0 protocol: data types, dispatcher, async transport |
jsonrpclib, jsonrpcserver, python-jsonrpc |
jsonrpcserver |
| a2a |
Google A2A protocol: JSON-RPC 2.0, SSE streaming, task management |
a2a-sdk, a2a-python |
a2a-python |
| acp |
Anthropic ACP protocol: JSON-RPC 2.0 over stdio, async client/agent |
acp-python |
acp-python |
| skills |
Agent Skills runtime: parse, discover, manage, select skills |
-- |
-- |
| llmstxt |
llms.txt parser and markdown URL candidate finder |
-- |
-- |
| cdp |
Chrome DevTools Protocol client for headless browser automation |
pychrome, pycdp |
websockets |
Serialization
| Module |
Description |
Replaces |
Benchmark Against |
| xml |
XML ↔ dict converter with fault-tolerant parsing and LLM tag extraction |
xmltodict |
xmltodict |
| yaml |
YAML parser and serializer (common subset) |
PyYAML, ruamel.yaml (common subset) |
PyYAML |
| jsonx |
Extended JSON parser (JSONC + JSONL/NDJSON) |
commentjson, jsonlines, ndjson |
commentjson |
| toon |
TOON (Token-Oriented Object Notation) encoder/decoder |
toon-format |
toon_format |
| frontmatter |
Frontmatter parser and serializer (YAML/TOML/JSON) |
python-frontmatter |
python-frontmatter |
| protobuf |
Proto3 encoder/decoder using Python dataclass schemas |
protobuf (google), betterproto |
protobuf |
| multipart |
Multipart/form-data parser and encoder (RFC 7578) |
python-multipart |
python-multipart |
Validation
| Module |
Description |
Replaces |
Benchmark Against |
| validate |
Runtime TypedDict/dataclass validator with JSON Schema generation |
pydantic (validation), cattrs, typeguard, marshmallow |
pydantic |
| jsonschema |
JSON Schema flattening & sanitization ($ref, allOf, anyOf) |
jsonschema (LLM-specific), allof-merge |
allof-merge |
| semver |
PEP 440 version parser and comparator |
packaging (Version), semver |
packaging |
Text & Search
| Module |
Description |
Replaces |
Benchmark Against |
| markdown |
Markdown to HTML renderer (CommonMark subset + GFM tables) |
mistune, markdown, markdown-it-py |
mistune |
| soup |
HTML parser with BeautifulSoup-like API (find, select, CSS selectors) |
beautifulsoup4 (common subset) |
beautifulsoup4 |
| readability |
Article content extractor ported from Mozilla Readability.js |
readability-lxml, newspaper3k, trafilatura |
readability-lxml |
| diff |
Unified diff parser, patch apply/reverse, three-way merge |
unidiff, patch |
unidiff |
| sparse_search |
BM25/BM25+/BM25L/BM25F + TF-IDF full-text search with Bayesian calibration, RRF fusion, MMR diversity |
rank-bm25, bm25s, whoosh |
rank-bm25 |
| synctex |
SyncTeX inverse-search parser (PDF position → source location) |
-- |
-- |
Configuration
| Module |
Description |
Replaces |
Benchmark Against |
| dotenv |
.env file parser (load_dotenv, dotenv_values) |
python-dotenv |
python-dotenv |
| config |
Unified config loader (env vars, .env, JSON/YAML/TOML/INI) |
python-decouple, dynaconf, environs, pydantic-settings |
python-decouple |
CLI & Terminal
| Module |
Description |
Replaces |
Benchmark Against |
| ansi |
ANSI terminal styling: colors, attributes, detection, strip/visible_len |
colorama, termcolor |
-- |
| tabulate |
Table formatting with multiple output styles |
tabulate, prettytable |
tabulate |
| prompt |
Interactive CLI prompts (confirm, select, text) |
inquirer, questionary |
questionary |
Security
| Module |
Description |
Replaces |
Benchmark Against |
| aes |
AES encryption: ECB, CBC, CTR, GCM modes (pure Python + OpenSSL via ctypes) |
pycryptodome (AES), cryptography (AES) |
pycryptodome |
Image
| Module |
Description |
Replaces |
Benchmark Against |
| png |
PNG/BMP image codec with matrix compression API |
pypng, Pillow (PNG/BMP subset) |
Pillow |
| qr |
QR Code generation with terminal rendering |
qrcode, segno |
qrcode |
Process & Execution
| Module |
Description |
Replaces |
Benchmark Against |
| retry |
Decorator-based retry with configurable backoff strategies |
tenacity, retrying, backoff |
tenacity |
| scheduler |
In-process task scheduler with cron, interval, one-shot triggers |
APScheduler, schedule, croniter |
APScheduler |
| runner |
Structured subprocess execution with timeout escalation |
sh, plumbum (partial) |
-- |
| filelock |
Cross-platform advisory file lock (fcntl/msvcrt) |
filelock |
-- |
Storage
| Module |
Description |
Replaces |
Benchmark Against |
| cache |
In-memory cache with TTL, LRU/LFU eviction, and async support |
cachetools, diskcache (in-memory) |
cachetools |
| persistdict |
Persistent dict with pluggable backends (JSON, SQLite) |
sqlitedict, diskcache (dict) |
-- |
| Module |
Description |
Replaces |
Benchmark Against |
| structlog |
Structured logging with pretty console output |
structlog, python-json-logger, loguru |
structlog |
| vcs |
Git/Hg/Jujutsu CLI wrapper (diff, status, log, blame) |
GitPython, pygit2 (high-level) |
-- |
| depdetect |
Dependency detection and verification |
pipreqs (partial) |
-- |
Inter-Module Dependencies
Most zerodep modules are fully standalone. The following modules depend on other zerodep modules:
graph LR
a2a --> jsonrpc
acp --> jsonrpc
cdp --> websocket
config --> dotenv
config --> jsonx
config --> yaml
frontmatter --> yaml
qr --> png
readability --> soup
skills --> frontmatter
skills --> sparse_search
sse --> httpclient
vcs --> diff
When using the CLI tool, dependencies are resolved automatically. For manual installation, ensure all required modules are present.