⚡ RustAPI
FastAPI-style Python Web Framework backed by a Rust (Tokio / Hyper) Engine — with embedded Rust Database Streaming, JWT & Argon2 Primitives, Tier 3 Rust-Native Routes, and a built-in MCP Server.
📦 Key Open-Source Features Included
| Feature Area | Implementation Details |
|---|---|
| HTTP & Routing | FastAPI-style @app.get, @app.post, APIRouter, Depends, app.dependency_overrides, response_model, reload=True. |
| Rust-Native Tier 3 Routes | app.add_native_route() zero-GIL C-speed fast-paths (50,000+ req/sec). |
| Database Engine | sqlx SQLite & PostgreSQL pool (app.connect_db()) with zero-copy JSON streaming (db.query_json()). |
| Power Primitives | Native Rust encode_jwt() / decode_jwt(), Argon2 hash_password() / verify_password(), MiniJinja render_template(). |
| Response Classes | HTMLResponse, JSONResponse, PlainTextResponse, RedirectResponse, StreamingResponse. |
| Request Ergonomics | req.json(), req.form, req.body, UploadFile, WebSocket. |
| AI / MCP Integration | Embedded Model Context Protocol server (@app.tool(), @app.resource(), @app.prompt()) at POST /mcp. |
| Telemetry & Observability | Terminal access logging (INFO: 127.0.0.1 - "GET /render HTTP/1.1" 200 - 0.45ms), Swagger UI (/docs), OpenAPI (/openapi.json). |
📚 Documentation Reference
Detailed documentation is available in the docs/ directory and project reference:
- 🚀 Engineering Roadmap
- 📖 Getting Started & Core Routing
- 📚 Complete API & Migration Guide
- 🏛️ 3-Tier Architecture Guide
- ⚡ Tier 3 Rust-Native Business Logic Guide
- 🗄️ Rust-Native Database Engine
- 🔐 Embedded Rust Power Primitives (JWT, Argon2, MiniJinja)
- 🤖 Model Context Protocol (MCP) Server
- 📦 Response Types & Request Ergonomics
- 📊 Empirical Performance Benchmark Report
🛠️ Local Development & Testing
Build from source with maturin:
# Clone the repository
git clone https://github.com/rajboopathiking/rustapi.git
cd rustapi
# Build release wheel with Maturin
pip install maturin
maturin develop --release
# Run full test suite
pytest tests/ -v
📄 License
Distributed under the MIT License.
Metadata
Release files for pyrustapi 0.1.30
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyrustapi-0.1.30.tar.gz | 264.5 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| pyrustapi-0.1.30-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details |
| pyrustapi-0.1.30-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| pyrustapi-0.1.30-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details |
| pyrustapi-0.1.30-cp38-abi3-macosx_10_12_x86_64.whl | CPython 3.8 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 16.5 MB
Release files / pyrustapi-0.1.30.tar.gz
| Download URL | pyrustapi-0.1.30.tar.gz |
|---|---|
| Size | 264.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea04f3b0d7b298e7b78b090d7905f8b54143b62c31a2f5729547ac3c3b5c453b
|
|
BLAKE2b-256 checksum How to use checksums |
eccaa3b3fadc84e264c8800d6ae6f631bafdc132a1c8552ecd0ec1afbd91758d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / pyrustapi-0.1.30-cp38-abi3-win_amd64.whl
| Download URL | pyrustapi-0.1.30-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
258fd14910193f71f0bab571936948104c2afb24c53241e1f1e9f44512d8345e
|
|
BLAKE2b-256 checksum How to use checksums |
906217995c516af3cf7d1b059c65b2233375c8d2085163b56cc25d4197f10603
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / pyrustapi-0.1.30-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pyrustapi-0.1.30-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9d5fafb3c9a4e8a117d3df3fb45c39ee97fb1f16cdd9a4035a787eb9458da483
|
|
BLAKE2b-256 checksum How to use checksums |
9c8189ff36f3769f890cdefce7f988d7d218ddd245884ab9fbd7dc4a0b061cef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / pyrustapi-0.1.30-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | pyrustapi-0.1.30-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.8 MB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e6ccf2f86ac1d7708d9156965e4d060e18fac67e49432aefbe1b537bbd6bc54e
|
|
BLAKE2b-256 checksum How to use checksums |
540200f38d26dd8fd3dbd31ec99eb3d9912be54c224cb9a125a2f6917e31438a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / pyrustapi-0.1.30-cp38-abi3-macosx_10_12_x86_64.whl
| Download URL | pyrustapi-0.1.30-cp38-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 3.8 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
f27ee22286fe77620057bc6917e645afad7e1f674542e876083e72c5730e303c
|
|
BLAKE2b-256 checksum How to use checksums |
bbc410794d9f91e2c1e088fdaff800f1c36123d2faff0049dad0c4b749598234
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|