⚡ 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.31
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.31.tar.gz | 265.6 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| pyrustapi-0.1.31-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details |
| pyrustapi-0.1.31-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.31-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details |
| pyrustapi-0.1.31-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.31.tar.gz
| Download URL | pyrustapi-0.1.31.tar.gz |
|---|---|
| Size | 265.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06ffda6f0af95014f76d6179a88c397331faaf9b3c282e7353cb9104a94e47ed
|
|
BLAKE2b-256 checksum How to use checksums |
7684d9eba3f3408aa506c896cb71c6013223d178fe630283dd6113d0665f8dda
|
| 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.31-cp38-abi3-win_amd64.whl
| Download URL | pyrustapi-0.1.31-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
339202da061694820dfd129f08fde6828cf07f0d396b031642451f17477163ce
|
|
BLAKE2b-256 checksum How to use checksums |
05dc9c22e2e5ff1ff3c00cbb9a200c1703347be2762bfe24087b6022cea4de05
|
| 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.31-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pyrustapi-0.1.31-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 |
3e5a1679a0794a8855cc21e4a65b9c39e7a131112b25ebc41998592ce72868a7
|
|
BLAKE2b-256 checksum How to use checksums |
7d1449214b358e87f68170eef6e1aadef60680d50e7fcbf903ce056cf62b2dcf
|
| 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.31-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | pyrustapi-0.1.31-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 |
1b5595a9ec9eccede01ca47bd2e4607e060bb868d28f1110cc20ce8ea91bbe5f
|
|
BLAKE2b-256 checksum How to use checksums |
194e35782f65a798b05f6d9c9a8d37937737016a10bb799d492c9ea68e39a7d7
|
| 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.31-cp38-abi3-macosx_10_12_x86_64.whl
| Download URL | pyrustapi-0.1.31-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 |
3f301ee9d6d569a7e87209175b57e426246b5665b6e1b21d722a986ca77f3a1b
|
|
BLAKE2b-256 checksum How to use checksums |
f3e298733d688fe7a17d6086da621f8eeb001a8e41f2cca4b4f3aec9a2941e9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|