Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

Release files for covet-rust 0.1.0b6

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

Built distribution (wheel)

Table of built distributions (wheels) for covet-rust 0.1.0b6
File Interpreter ABI Platform
covet_rust-0.1.0b6-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details

Release files / covet_rust-0.1.0b6-cp38-abi3-macosx_11_0_arm64.whl

Download URL covet_rust-0.1.0b6-cp38-abi3-macosx_11_0_arm64.whl
Size 1.8 MB
Tags CPython 3.8 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d9e80799c55fbb201bb4cc720f03e5a632df1039782dcaacc2535c6cf9b4c71b
BLAKE2b-256 checksum
How to use checksums
906e7ece0238bb5c744076fb7e46c9e2f746a6a543df5d00912829e8dcb296a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.0
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