High-performance Rust extensions for CovetPy web framework with comprehensive FFI
Project description
covet-rust
High-performance Rust extensions for the CovetPy web framework, providing up to 10x speedups for critical operations.
Overview
covet-rust is an optional performance enhancement package for CovetPy that provides Rust-based implementations of performance-critical operations. When installed alongside the main covet package, it automatically accelerates JSON processing, JWT operations, password hashing, rate limiting, and URL routing.
Installation
pip install covet-rust
The package is optional - CovetPy works perfectly without it, but installing covet-rust provides significant performance improvements for production deployments.
Requirements
- Python 3.9 or higher
- CovetPy framework (
pip install covet) - Compatible platform (currently macOS ARM64, more platforms coming soon)
Usage with CovetPy
Once installed, covet-rust integrates automatically with CovetPy. No code changes are required:
from covet import CovetPy
app = CovetPy()
# All operations automatically use Rust extensions when available
# JSON encoding/decoding - 6-8x faster
# JWT operations - 10x faster
# Password hashing - 3x faster with caching
# Rate limiting - 20x faster
# URL routing - 10x faster
Checking if Rust Extensions are Active
from covet._rust import RUST_AVAILABLE
if RUST_AVAILABLE:
print("✅ Using Rust extensions for maximum performance")
else:
print("⚠️ Using Python fallback implementations")
Performance Gains
| Operation | Speedup vs Pure Python |
|---|---|
| JSON Encode/Decode | 6-8x faster |
| JWT Sign/Verify | 10x faster |
| Password Verification (cached) | 5000x faster |
| Rate Limiting | 20x faster |
| URL Routing | 10x faster |
| BLAKE3 Hashing | 10x faster |
Features
JSON Operations
- SIMD-accelerated JSON parsing and encoding
- Automatic integration with CovetPy's JSON handling
JWT Authentication
- Hardware-accelerated JWT operations
- Supports HS256, RS256, ES256, EdDSA algorithms
- Token caching for repeated validations
Password Hashing
- Argon2id, BCrypt, and BLAKE3 implementations
- Verification result caching
- Configurable security parameters
Rate Limiting
- Lock-free concurrent access
- Multiple algorithms (Token Bucket, Sliding Window, Fixed Window, Leaky Bucket)
URL Routing
- Trie-based router with regex support
- Fast parameter extraction and validation
Platform Support
Current Release:
- macOS ARM64 (Apple Silicon)
Coming Soon:
- Linux x86_64
- macOS x86_64 (Intel)
- Windows x86_64
If your platform is not yet supported, CovetPy will automatically use pure Python implementations without any performance penalty to functionality.
Documentation
For detailed CovetPy framework documentation and examples, visit: https://github.com/vipin08/Covet-doc
Version
Current version: 0.1.0b2
License
Proprietary License
Copyright © 2025 Vipin Kumar. All rights reserved.
This software is proprietary and confidential. Unauthorized copying, distribution, or use is strictly prohibited.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file covet_rust-0.1.0b6-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: covet_rust-0.1.0b6-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9e80799c55fbb201bb4cc720f03e5a632df1039782dcaacc2535c6cf9b4c71b
|
|
| MD5 |
9c0e26c2061b554076fa4dda1afe8865
|
|
| BLAKE2b-256 |
906e7ece0238bb5c744076fb7e46c9e2f746a6a543df5d00912829e8dcb296a1
|