Version 0.2.8 (Current)
The latest stable release of FastrAPI.Features
- High-performance core - Up to 33x faster than FastAPI with Gunicorn
- Pydantic integration - Full support for Pydantic models for request/response validation
- Async native - Built on Tokio’s async runtime for maximum concurrency
- Drop-in compatibility - FastAPI-style decorator syntax
- Response types - Support for HTMLResponse, JSONResponse, and custom responses
- Middleware support - CORS, TrustedHost, GZip, and Session middleware
- WebSocket support - Native WebSocket implementation with clean async handling
- Form/Multipart support - Handle file uploads and form data
- Security utilities - OAuth2, JWT, and other security features
- Static file serving - UploadFile and multipart file handling
- Dependency injection - Pre-built injection plans for efficient request handling
- Rust integration - Seamless PyO3 integration for Rust-powered performance
Performance
- 31,360 requests/second - Benchmarked with 20 VUs over 30s
- 0.59ms average latency - Ultra-low latency for high-throughput APIs
- 0.00ms median latency - Consistent, predictable performance
- O(1) route lookup - Papaya concurrent hashmap for fast routing
Technical details
- Built with PyO3 and Axum
- Requires Python 3.8 or higher
- Dependencies: FastAPI, httpx, Pydantic, pytest
- MIT License
Previous versions
Version 0.2.x series
The 0.2.x series introduced major performance improvements and feature additions:- Enhanced middleware system
- Improved WebSocket implementation
- Better error handling
- Security utilities
- Form and multipart support
Version 0.1.x series
Initial releases establishing the core FastrAPI framework:- Basic routing with decorators
- Pydantic integration
- Async support
- Initial performance optimizations