Skip to main content

⚡ 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.

PyPI GitHub Repository License: MIT Python: 3.8+ Rust: 1.75+


📦 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:


🛠️ 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.29

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrustapi 0.1.29
File Size Uploaded
pyrustapi-0.1.29.tar.gz 264.8 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pyrustapi 0.1.29
File
pyrustapi-0.1.29-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details
pyrustapi-0.1.29-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.29-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details
pyrustapi-0.1.29-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.29.tar.gz

Download URL pyrustapi-0.1.29.tar.gz
Size 264.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2f7668adace1f2c327c441a9cc9c9bdc212859b6d34dc82133349562e04dca87
BLAKE2b-256 checksum
How to use checksums
2b3069e4b500f8354dcf0ebfc3081e22abf6c5450d484743b36cb1852e93f23b
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.29-cp38-abi3-win_amd64.whl

Download URL pyrustapi-0.1.29-cp38-abi3-win_amd64.whl
Size 4.2 MB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c639b36cb2e272572af7e1c984bf4ba5e334334193c48c38448684c0d75f9b64
BLAKE2b-256 checksum
How to use checksums
a2c75bb765b9852ac2d4c2445f4ebc81242b12a3ee820e9ab896c27019caf61b
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.29-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyrustapi-0.1.29-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
de99df13e749f6adc7361a9840388e69903b12234f40c84bf5b931d096d26851
BLAKE2b-256 checksum
How to use checksums
8b4cbab9eef7fd60a025f850e62153b536cf66ba3df0218979a88f29510c5f88
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.29-cp38-abi3-macosx_11_0_arm64.whl

Download URL pyrustapi-0.1.29-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
071ca16837213730c495f90a5245aa717f6ba587a4d1fd8e16bf61b7afd5a228
BLAKE2b-256 checksum
How to use checksums
233c77a1e94915e72f4a1bc4c7968b59b9404288015591920f884ed1dffcefb8
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.29-cp38-abi3-macosx_10_12_x86_64.whl

Download URL pyrustapi-0.1.29-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
01c5f7f34e4810018d0ab51712e131f1da8d5218decc9304e29c61bd5c374ac0
BLAKE2b-256 checksum
How to use checksums
81c77272a2191c03bd121fc6d53dd5188fa6e1dd7e53e4272f755bba547f2d28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

1.8.9

5 release files

1.8.8

5 release files

1.8.6

5 release files

0.8.6

5 release files

0.3.3

5 release files

0.3.0

5 release files

0.1.33

5 release files

0.1.31

5 release files

0.1.30

5 release files

This release

0.1.29 This release

5 release files

0.1.28

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page