🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

covet-rust

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

covet-rust

High-performance Rust extensions for CovetPy web framework with comprehensive FFI

pipPyPI
Version
0.1.0b2
Maintainers
1

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

OperationSpeedup vs Pure Python
JSON Encode/Decode6-8x faster
JWT Sign/Verify10x faster
Password Verification (cached)5000x faster
Rate Limiting20x faster
URL Routing10x faster
BLAKE3 Hashing10x 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.

Keywords

web

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts