lite-server
High-performance model inference server — Rust core for I/O, Python for inference.
Table of Contents
- lite-server
Why lite-server?
| Feature | What it means for you | |
|---|---|---|
| Fast | Rust HTTP core (axum/tokio), zero-copy data path, adaptive batching | Higher throughput, lower latency than pure-Python servers |
| Stable | Outlier detection, heartbeat, auto-respawn, lifecycle hooks | Self-healing workers that detect hangs and restart automatically |
| Simple | pip install, write one model.py, done |
No Docker, no Java, no C++ build tools |
| Flexible | Hot reload, multi-version, ensemble DAG | A/B testing, canary deploys, multi-model pipelines in one server |
| Observable | Prometheus metrics, timeline, alerts | Know what's happening in production without guessing |
| Lightweight | Single binary + Python workers, cross-platform | Runs on a laptop, scales on a server |
Quick Start
# 1. Install
pip install miraserver
# 2. Scaffold a project
python -m lite_server init my_project --template empty
cd my_project
# 3. Serve
python -m lite_server serve --config server.yaml
# 4. Test
python test_request.py
# or manually:
curl -X POST http://localhost:8000/v2/models/my_model/infer \
-H 'Content-Type: application/json' \
-d '{"input": 21}'
# => {"output": 42}
Currently only the empty template is available. Use --wizard for interactive project setup.
Architecture
HTTP/gRPC Request
│
▼
┌─────────────────┐ ┌──────────────────┐
│ Rust Core │ │ Python Workers │
│ (axum/tokio) │────►│ (subprocesses) │
│ │ZMQ/ │ │
│ ┌────────────┐ │Protobuf ┌─────────────┐│
│ │ Inference │ │ │ │ model.py │ │
│ │ Queue │ │ │ │ (LitAPI) │ │
│ └────────────┘ │ │ └─────────────┘ │
│ ┌────────────┐ │ └──────────────────┘
│ │ Metrics & │ │
│ │ Alerts │ │
│ └────────────┘ │
└─────────────────┘
The Rust core handles all I/O (HTTP, gRPC, IPC, metrics, file watching), while Python workers handle model inference. This separation gives you Rust-level throughput with Python-level simplicity.
See docs/architecture.md for details.
Comparison with Other Frameworks
| Aspect | lite-server | Triton | TorchServe | BentoML | Ray Serve |
|---|---|---|---|---|---|
| Language | Rust + Python | C++ | Java + Python | Python | Python |
| Install | pip install |
Docker | pip install / Docker |
pip install |
pip install |
| Hot Reload | File watcher auto-reload | Model-swap via API (no code hot-reload) | Limited | No | No |
| Multi-Version | Yes (activate/deactivate) | Yes | Yes | Manual | Manual |
| Ensemble | DAG with parallel layers | Yes | No | Pipeline | Deployment graph |
| Outlier Detection | Envoy-style auto-eject | No | No | No | No |
| Heartbeat + Respawn | ZMQ probe, auto-restart hung workers | No | No | No | Yes (replica health check + auto-restart) |
| Lifecycle Hooks | Shell + HTTP callbacks | No | No | Yes (on_startup/on_shutdown) |
Yes (__init__/reconfigure/on_shutdown) |
| Streaming | SSE + WebSocket + gRPC | Yes (gRPC streaming) | Yes (HTTP streaming) | Yes | Yes |
| Min. Overhead | ~15MB | ~2GB+ | ~1.5GB+ | ~500MB+ | ~100MB+ |
See docs/comparison.md for detailed analysis.
Benchmarks
Note: Measured on a single workstation (macOS x86_64, i9-9980HK, 16 cores), zero-compute echo model, HTTP layers aligned to a single event-loop thread (
--threads 1), 2 workers / 64 concurrency, 15s per config. See docs/benchmark.md for the full matrix and methodology.
2-worker, 64-concurrency, zero-compute echo, HTTP layer aligned --threads 1 (lite-server 0.8.0rc2 vs LitServe 0.2.17, three sides isomorphic):
| Server | Throughput | p99 Latency |
|---|---|---|
| lite-server | 6,788 req/s | 14.9 ms |
| lite-server-core | 6,949 req/s | 12.0 ms |
| LitServe | 2,978 req/s | 28.2 ms |
lite-server (PyO3 embedding) matches the native Rust binary (the embedding layer adds zero hot-path overhead) and sustains ~2.3× LitServe (2.0–2.4× at c≥16, isomorphic zero-compute echo). Full matrix and methodology in docs/benchmark.md.
Features
Inference Modes
- Standard batching — group requests into batches for GPU efficiency
- Continuous batching — for LLM workloads with prefill/step/has_finished hooks
- Streaming — token-by-token output via SSE, WebSocket, or gRPC
- Decoupled streaming — 1:N push streams over gRPC (
DecoupledInfer) whose lifetime the model controls (predict_decoupled) - Ensemble — DAG-based multi-model pipelines with parallel execution, over HTTP and gRPC alike
Model Management
- Triton-style repository —
model_name/version/model.pydirectory structure - Hot reload — modify model.py, server picks up changes automatically
- Multi-version — load, unload, activate, deactivate versions independently
- Canary routing — per-version traffic weights +
x-lite-versionrequest pinning (canary_override) - Load policies —
explicit,latest,allfor version management - Model warmup — dummy inferences run before a version reports Ready (
policies.warmup), with aWarmingUpstate machine - Model packing —
.lmaformat with SHA256 + HMAC signature - Model upload/download — upload
.lmaartifacts or raw files via HTTP API, with auto-load support
Custom Routes
- Decorator routing —
@route.get("/status")onLitAPImethods, served under/v2/models/<model>/<tail> - Same channel as inference — route handlers run in the model worker; no separate process
- Server context access —
ctx.server.registryand cross-modelctx.server.inference.infer()from handlers - Callback chain — model-level callbacks (auth, rate limiting, CORS, logging) cover inference and custom routes alike (Rust-side rate limiting/CORS middleware does not yet cover custom routes)
Worker Resilience
- Outlier detection — consecutive errors trigger automatic worker ejection (Envoy-style)
- Request retry — failed requests retry on a different worker (up to 3 attempts)
- Least-loaded routing — requests go to the worker with fewest inflight tasks
- Max-requests recycle — auto-restart workers after N requests, with jitter to prevent thundering herd
- Heartbeat detection — periodic ZMQ probes detect hung workers, auto-kill and respawn
- Lifecycle hooks — shell commands and HTTP callbacks on worker ready/exit/error for alerting and observability
- Per-request timeout — hard timeout prevents stuck requests from blocking the queue
Traffic & Reliability
- Overload protection — global
max_inflightcap rejects excess inference with503 + Retry-After(health/admin stay reachable) - Priority queue —
x-lite-priorityheader (higher = dispatched first) and per-modelqueue_timeoutwithrejectaction - Per-request deadlines —
x-lite-timeout(HTTP) /grpc-timeoutbound the wait; expiry returns504, propagated across ensemble DAGs - Sequence-sticky routing —
x-sequence-idpins a client sequence to one worker (sequence_ttl_secs/max_sequences; soft pin with load-balancing thresholds)
Security
- TLS / mTLS — rustls-based TLS on HTTP and gRPC, client-certificate mTLS, live certificate hot-rotation (file poll + SIGHUP)
- Endpoint access control — per-class (admin / inference / health × http / grpc) API-key or loopback-only policies; admin is fail-closed by default; constant-time key comparison
- Trusted-proxy client IP —
trusted_proxiescleansing ofX-Forwarded-For/X-Real-IP; fail-safe default (headers ignored) prevents forged-IP rate-limit bypass - CORS + WebSocket Origin gate — global or per-model CORS (exact-origin matching,
Vary: Origin); WS handshakes checked at upgrade (403 on mismatched Origin) - Admin API auth — separate admin bind (
grpc.admin_bind, e.g. UDS), API-key gating, structured audit log for every control-plane mutation
Observability
- Prometheus metrics — QPS, P50/P90/P99 latency, queue depth, TTFT, batch size, worker ejections
- Custom metrics — gauge, counter, histogram from model code via
register_metric()/report_metric() - OpenTelemetry — opt-in OTLP/gRPC traces + metrics SDK (cargo
telemetryfeature +telemetry.enabled), W3C traceparent bridging to workers - Timeline — historical metric sampling per model
- Alerts — built-in alert rules for anomaly detection
- Structured logging — tracing-based logs with model/worker context;
lite_server::audittarget for control-plane mutations
Operations
- Admin gRPC service — 11 RPCs (GetInfo, ListModels, Load/Unload/Reload, ActivateVersion, SetRouting, GetModelStats, …) on a separate bind
- Unix-domain sockets — HTTP (
server.host: unix:...) and gRPC (grpc.host/grpc.admin_bind) withsocket_modecontrol - KEDA / autoscaler integration — vLLM-compatible metric namespace (
{ns}:total_queued_requests,kv_cache_utilization) + ScaledObject recipe - Graceful shutdown — drain in-flight requests, 503-drain gate, force-flushed telemetry with a capped drain window
Installation
From Wheel (Recommended)
Pre-built wheels for Linux (x86_64 + aarch64), macOS (Apple Silicon), and Windows (x86_64), Python 3.10-3.14:
pip install miraserver-<version>-cp310-abi3-<platform>.whl
From Source
Requires a recent stable Rust toolchain (CI builds on stable) and Python >= 3.10.
pip install maturin
maturin develop # dev build
maturin build --release # release wheel
CLI Commands
lite-server serve # Start inference server
lite-server serve --config server.yaml
lite-server serve --port 9000 --max-requests 1000 --max-requests-jitter 100
lite-server config-check server.yaml # Validate config
lite-server benchmark --model my_model
lite-server analyze --model my_model
lite-server pack ./my_model --version 1
lite-server unpack my_model_v1.lma
lite-server init my_project # Scaffold new project
See docs/cli.md for the full CLI reference.
Examples
See examples/ for runnable model repositories:
| # | Example | Description |
|---|---|---|
| 01 | basic | Minimal echo model |
| 02 | batching | Request batching with adaptive timeout |
| 03 | streaming | Token-by-token streaming via SSE/WebSocket |
| 04 | multi_version | Two versions with activation switching |
| 05 | ensemble | DAG-based multi-model pipeline |
| 06 | custom_route | Custom HTTP routes with @route decorator |
| 07 | custom_params | Config-driven model behavior |
| 08 | error_handling | Exception-to-HTTP mapping, request timeout, worker ejection |
| 09 | custom_metrics | Custom Prometheus metrics (gauge/counter/histogram) |
| 10 | async | Asynchronous inference (unified async pipeline) |
| 11 | logging | Structured logging at every stage |
| 12 | continuous_batching | LLM continuous batching (prefill/step/has_finished) |
| 13 | bidi_streaming | Bidirectional streaming for ASR |
| 14 | lifecycle_hooks | Worker lifecycle hooks (shell + HTTP callbacks) |
| 15 | callbacks | Python callback pipeline (auth, cache, validation, error metrics) |
| 16 | grpc | gRPC inference endpoints (incl. ensemble DAGs) |
| 17 | config_templates | Config templates, env vars, multi-env server.yaml |
| 18 | tls_mtls | TLS/mTLS + live certificate rotation |
| 19 | canary | Canary traffic weights + x-lite-version pinning |
| 20 | overload_control | max_inflight, queue timeouts, priorities, deadlines |
| 21 | admin_security | Admin gRPC on its own UDS, access control, audit log |
| 22 | warmup | Model warmup + readiness state machine |
| 23 | advanced_routing | sequence_id stickiness + DecoupledInfer 1:N |
| 24 | proxy_security | Trusted-proxy client IP, CORS, WebSocket Origin gate |
See examples/README.md for learning path and usage details.
Documentation
| Doc | Covers |
|---|---|
| Configuration (中文) | Full server / model / orchestration config reference |
| Model Authoring (中文) | LitAPI interface, streaming, continuous batching, best practices |
| CLI Reference (中文) | All CLI commands and flags |
| Architecture (中文) | System design, request flow, worker model |
| HTTP Bidirectional Streaming (中文) | WS /stream bidi frames, h2 /bidi endpoint (LPM, client requirements) |
| HTTP Decoupled Streaming (中文) | SSE /decoupled + WS /decoupled-stream (model-driven streams, control frames) |
| Observability / OpenTelemetry | OTLP traces + metrics, sampling, baggage allowlist |
| Metrics Reference (中文) | Streaming request-level metrics, label semantics, bucket changes, gating matrix (0.8.3) |
| CORS Security Checklist | CORS resolution rules and why each exists |
| Graceful Shutdown | Drain semantics, signal handling, telemetry flush |
| KEDA Autoscaling | vLLM-compatible metrics + ScaledObject for LLM autoscalers |
| Migration Guide | 0.6.x → 0.7.x breaking changes, item by item |
| Benchmarks | Benchmark methodology and results |
| Comparison | lite-server vs other serving frameworks |
API Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v2/models/{name}/infer |
Inference (active version) |
| POST | /v2/models/{name}/versions/{v}/infer |
Inference (specific version) |
| POST | /v2/models/{name}/events |
SSE streaming |
| POST | /v2/models/{name}/versions/{v}/events |
SSE streaming (specific version) |
| GET | /v2/models/{name}/stream |
WebSocket streaming |
| GET | /v2/models/{name}/versions/{v}/stream |
WebSocket streaming (specific version) |
| POST | /v2/models/{name}/bidi |
HTTP/2 bidirectional streaming (LPM frames; h2 only) |
| POST | /v2/models/{name}/versions/{v}/bidi |
HTTP/2 bidirectional streaming (specific version) |
| POST | /v2/models/{name}/decoupled |
SSE decoupled streaming (model-driven) |
| POST | /v2/models/{name}/versions/{v}/decoupled |
SSE decoupled streaming (specific version) |
| GET | /v2/models/{name}/decoupled-stream |
WebSocket decoupled streaming (model-driven) |
| GET | /v2/models/{name}/versions/{v}/decoupled-stream |
WebSocket decoupled streaming (specific version) |
| GET | /v2/models |
List loaded models |
| GET | /v2/models/{name}/versions |
Multi-version overview (status / active / weight / workers / loaded_at) |
| GET | /v2/models/{name}/ready |
Readiness check (active version) |
| GET | /v2/models/{name}/versions/{v}/ready |
Readiness check (specific version) |
| GET | /v2/models/{name}/health |
Per-worker health status (routed version) |
| GET | /v2/models/{name}/versions/{v}/health |
Per-worker health status (specific version) |
| GET | /v2/models/{name}/compare |
Compare model versions |
| DELETE | /v2/models/{name}/versions/{v} |
Delete model version |
| POST | /v2/repository/models/{name}/versions/{v}/load |
Load model version |
| POST | /v2/repository/models/{name}/unload |
Unload active version |
| POST | /v2/repository/models/{name}/versions/{v}/unload |
Unload specific version |
| POST | /v2/repository/index |
Index model repository |
| POST | /v2/repository/models/{name}/versions/{v}/upload |
Upload model files (.lma or raw) |
| GET | /v2/repository/models/{name}/versions/{v}/download |
Download model files |
| GET | /v2/repository/models/{name}/versions/{v}/files |
List version directory contents |
| POST | /v2/models/{name}/reload |
Hot reload (active version) |
| POST | /v2/models/{name}/versions/{v}/reload |
Hot reload (specific version) |
| POST | /v2/models/{name}/versions/{v}/activate |
Activate version (hard cutover) |
| PUT | /v2/models/{name}/routing |
Set traffic weights atomically ({"weights":{"v1":90,"v2":10}}) |
| GET | /health |
Health summary (JSON: per-version status grouped by model) |
| GET | /livez |
Liveness probe (always 200) |
| GET | /readyz |
Readiness probe (503 until a model can serve) |
| GET | /startupz |
Startup probe (503 while models load) |
| GET | /info |
Server info |
| GET | /metrics |
Prometheus metrics |
| GET | /metrics/timeline |
Historical metric timeline |
| GET | /metrics/timeline/{name} |
Per-model metric timeline |
| GET | /metrics/timeline/{name}/versions/{v} |
Per-model-version metric timeline |
| GET | /metrics/alerts |
Alert rules and status |
Custom routes declared with @route on LitAPI methods are served under /v2/models/{name}/<tail>. System tails (infer, events, stream, ready, health, reload, versions, compare) are reserved and cannot be overridden. livez, readyz, startupz are root-level probes outside the model namespace, so they do not conflict with custom routes.
Configuration
Minimal server.yaml:
server:
http_port: 8000
host: 0.0.0.0
model_repository:
path: ./model_repo
Per-model config (model_repo/my_model/1/config.yaml):
max_batch_size: 8
batch_timeout: 0.01
stream: false
accelerator: cpu
workers_per_device: 1
request_timeout: 30.0
# Worker lifecycle — auto-restart + jitter + heartbeat + hooks
max_requests: 500
max_requests_jitter: 50
heartbeat_interval: 10.0
heartbeat_timeout: 5.0
heartbeat_max_failures: 3
hooks:
on_ready: 'echo "Worker $WORKER_ID ready"'
on_error: 'curl -s -X POST http://alerts.internal/worker-error \
-d "{\"model\":\"$MODEL\",\"reason\":\"$REASON\"}"'
See docs/configuration.md for the full configuration reference (server, model, orchestration, CLI flags).
See docs/cli.md for the complete CLI reference.
See docs/model-authoring.md for the complete model authoring guide (LitAPI interface, streaming, continuous batching, best practices).
FAQ
Q: How is lite-server different from LitServe? lite-server uses a Rust HTTP core (axum/tokio) instead of Python's uvicorn, with the same LitAPI-compatible model code. Under zero-compute echo (pure framework overhead, three sides isomorphic), lite-server matches the native lite-server-core binary (PyO3 embedding adds zero overhead) and sustains ~2.0–2.4× LitServe at c≥16 (single event loop, aligned); under a 1ms-sleep workload all three converge — see Benchmarks.
Q: Do I need Docker?
No. pip install and run directly. Works on Linux, macOS, and Windows.
Q: Can I use my existing LitAPI code?
from lite_server import LitAPI works for any model with setup + predict. Since 0.7.0 it's a self-contained base class — no litserve dependency. Async methods are supported natively; just write async def predict(self, x).
Q: How do I deploy multiple models?
Put each model in its own directory under model_repo/ and list them in server.yaml. See examples/05_ensemble for multi-model pipelines.
Q: How do I switch model versions?
Use the activate/deactivate API: POST /v2/models/{name}/versions/{v}/activate. See examples/04_multi_version.
Q: What happens if a worker crashes? The worker is automatically restarted. In-flight requests are retried on other workers (up to 3 attempts). Outlier detection ejects unhealthy workers. Heartbeat probes detect hung processes and trigger automatic respawn. Lifecycle hooks fire on exit/error for alerting.
Multi-Platform
Wheels are built by CI for the platforms below. macOS x86_64 (Intel) and Windows aarch64 are not currently published — build from source there (requires Rust + libzmq).
| Platform | Architecture | Wheel Tag |
|---|---|---|
| Linux | x86_64 | manylinux_2_28_x86_64 |
| Linux | aarch64 | manylinux_2_28_aarch64 |
| macOS | aarch64 (Apple Silicon) | macosx_11_0_arm64 |
| Windows | x86_64 | win_amd64 |
Development
cargo build --release
cargo test
cd python && python -m pytest tests/
Project Structure
.
├── src/ # Rust core (HTTP, inference queue, worker management, ensemble, gRPC)
├── python/ # Python package (CLI, worker process, LitAPI, artifact packer)
├── tests/ # Rust integration tests
├── examples/ # Example model repositories
├── benchmarks/ # Performance benchmarks
├── docs/ # Documentation
│ ├── architecture.md
│ ├── benchmark.md
│ ├── cli.md # CLI reference
│ ├── comparison.md
│ ├── configuration.md
│ ├── cors-security-checklist.md
│ ├── graceful-shutdown.md
│ ├── keda.md
│ ├── migration.md
│ ├── model-authoring.md
│ ├── otel-observability.md
│ └── zh/ # Chinese docs (same set)
└── Cargo.toml # Rust manifest
└── pyproject.toml # Python packaging (maturin)
License
MIT
Metadata
Release files for miraserver 0.8.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| miraserver-0.8.3-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for miraserver-0.8.3-cp310-abi3-win_amd64.whl |
| miraserver-0.8.3-cp310-abi3-manylinux_2_28_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ x86-64 | Details for miraserver-0.8.3-cp310-abi3-manylinux_2_28_x86_64.whl |
| miraserver-0.8.3-cp310-abi3-manylinux_2_28_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ ARM64 | Details for miraserver-0.8.3-cp310-abi3-manylinux_2_28_aarch64.whl |
| miraserver-0.8.3-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for miraserver-0.8.3-cp310-abi3-macosx_11_0_arm64.whl |
Total release size: 27.0 MB
Release files / miraserver-0.8.3-cp310-abi3-win_amd64.whl
| Download URL | miraserver-0.8.3-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 6.8 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9e5dd8ccdb9ea33db4a7ac6b575e432cdbb19f42d323771a9a9256b2546eade6
|
|
BLAKE2b-256 checksum How to use checksums |
3f38c5d59b2cc8bf283d5da2ea68e3278503483ea684f4f9a709abfad64f5aa0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / miraserver-0.8.3-cp310-abi3-manylinux_2_28_x86_64.whl
| Download URL | miraserver-0.8.3-cp310-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.0 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
6e06e637f0fb1eec460f2df2b846e445bfcf19f8b2df35a3cb91c8583e6bf605
|
|
BLAKE2b-256 checksum How to use checksums |
b256a9337ebf850397834b168431b296d6e51f371150dfdd18e7cafadd9123f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / miraserver-0.8.3-cp310-abi3-manylinux_2_28_aarch64.whl
| Download URL | miraserver-0.8.3-cp310-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 6.8 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
eec4ad230ecb1abc13313d4e0a0ac6543e5ba60f4283dc59d02fc0f95c074af7
|
|
BLAKE2b-256 checksum How to use checksums |
277e9ccec81bb232866f58477bbc73f7b98b059e5e366b6ac3246ec81be7874e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / miraserver-0.8.3-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | miraserver-0.8.3-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 6.4 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9cea95ce5cc37260bb64300d99d98d2d77a29608555a07b5431ec9662cd867c0
|
|
BLAKE2b-256 checksum How to use checksums |
e4c3b8b3eb031819a4379d2709bdffbbe29b542c07885a91292369acbc05ec3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for miraserver 0.8.3
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.