Metadata-Version: 2.4
Name: covet-rust
Version: 0.1.0b6
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Rust
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Database
Classifier: Topic :: Security :: Cryptography
Classifier: Operating System :: OS Independent
Classifier: Framework :: AsyncIO
Requires-Dist: pytest>=7.0 ; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.21 ; extra == 'dev'
Requires-Dist: pytest-benchmark>=4.0 ; extra == 'dev'
Requires-Dist: pytest-cov>=4.0 ; extra == 'dev'
Requires-Dist: black>=23.0 ; extra == 'dev'
Requires-Dist: mypy>=1.0 ; extra == 'dev'
Requires-Dist: ruff>=0.1 ; extra == 'dev'
Requires-Dist: ipython>=8.0 ; extra == 'dev'
Requires-Dist: asyncpg>=0.29 ; extra == 'postgres'
Requires-Dist: aiomysql>=0.2 ; extra == 'mysql'
Requires-Dist: uvloop>=0.19 ; extra == 'bench'
Requires-Dist: orjson>=3.9 ; extra == 'bench'
Requires-Dist: ujson>=5.9 ; extra == 'bench'
Requires-Dist: covet-rust[dev,postgres,mysql,bench] ; extra == 'all'
Provides-Extra: dev
Provides-Extra: postgres
Provides-Extra: mysql
Provides-Extra: bench
Provides-Extra: all
Summary: High-performance Rust extensions for CovetPy web framework with comprehensive FFI
Keywords: web,framework,async,performance,rust,ffi,database,orm,cryptography,json
Author: Vipin Kumar
License: Proprietary
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Author, https://github.com/vipin08
Project-URL: Documentation, https://github.com/vipin08/Covet-doc

# 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

```bash
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:

```python
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

```python
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.
