Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

covet_rust-0.1.0b6-cp38-abi3-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

File details

Details for the file covet_rust-0.1.0b6-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for covet_rust-0.1.0b6-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9e80799c55fbb201bb4cc720f03e5a632df1039782dcaacc2535c6cf9b4c71b
MD5 9c0e26c2061b554076fa4dda1afe8865
BLAKE2b-256 906e7ece0238bb5c744076fb7e46c9e2f746a6a543df5d00912829e8dcb296a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page