Skip to main content

Velox Framework

PyPI version Python 3.12+ License: MIT Tests Coverage

Velox (Advanced Network Application Layer) is a modern, high-performance Python backend framework designed for building scalable web applications and APIs. It combines the best features of Django, FastAPI, and Laravel while maintaining clean architecture principles and async-first design.

⚡ Quick Start

Installation

pip install velox-framework

Create Your First Project

# Create a new project
velox-admin startproject myproject
cd myproject

# Create your first app
velox-admin startapp blog

# Run development server
velox-admin runserver

Hello World Example

from velox import Velox, Controller, route
from velox.http import JsonResponse

app = Velox()

@app.route('/')
async def hello_world(request):
    return JsonResponse({'message': 'Hello, World!'})

class BlogController(Controller):
    @route.get('/posts')
    async def list_posts(self, request):
        return JsonResponse({'posts': []})
    
    @route.post('/posts')
    async def create_post(self, request):
        data = await request.json()
        # Auto-validation with Pydantic models
        return JsonResponse({'created': True})

if __name__ == '__main__':
    app.run(debug=True)

🚀 Key Features

🏗️ Clean Architecture & DDD

  • Domain-driven design patterns
  • Dependency injection container
  • Clean separation of concerns
  • Testable and maintainable code

⚡ Async-First Performance

  • Native async/await support
  • High-performance ASGI server
  • Connection pooling
  • Background task processing

🗄️ Powerful ORM

  • Database-agnostic design
  • Support for PostgreSQL, MySQL, SQLite, MongoDB
  • Async queries and migrations
  • Relationship management

🛡️ Security Built-In

  • JWT/OAuth2 authentication
  • CSRF/XSS protection
  • Rate limiting
  • Input validation and sanitization

🔌 API Generation

  • Auto-generated REST APIs
  • GraphQL support
  • OpenAPI/Swagger documentation
  • API versioning

🎨 Rich Feature Set

  • Admin panel with auto-generated UI
  • Template engine (Jinja2)
  • Middleware system
  • WebSocket support
  • Internationalization (i18n)
  • Background jobs and scheduling
  • Real-time capabilities

📚 Documentation

🏛️ Architecture

Velox follows Clean Architecture principles with clear separation between layers:

┌─────────────────────────────────────────┐
│         Presentation Layer              │ ← Controllers, Views, API
├─────────────────────────────────────────┤
│         Application Layer               │ ← Use Cases, Services
├─────────────────────────────────────────┤
│            Domain Layer                 │ ← Entities, Value Objects
├─────────────────────────────────────────┤
│       Infrastructure Layer              │ ← Database, External APIs
└─────────────────────────────────────────┘

🎯 Performance

  • High throughput: 40,000+ requests/second
  • Low latency: Sub-millisecond response times
  • Memory efficient: Optimized for containerized deployments
  • Scalable: Horizontal scaling support

🛠️ Development Tools

CLI Commands

# Project management
velox-admin startproject myproject
velox-admin startapp myapp

# Database operations
velox-admin makemigrations
velox-admin migrate
velox-admin shell

# Development server
velox-admin runserver --reload
velox-admin runserver --workers 4

# Testing and deployment
velox-admin test
velox-admin collectstatic
velox-admin deploy

Development Features

  • Hot reloading
  • Interactive shell
  • Database migrations
  • Test utilities
  • Static file handling
  • Docker integration

🌐 Ecosystem

Built-in Apps

  • velox.auth - Authentication and authorization
  • velox.admin - Auto-generated admin interface
  • velox.api - REST and GraphQL API generation
  • velox.files - File upload and management
  • velox.cache - Multi-level caching
  • velox.tasks - Background job processing

Third-party Packages

  • velox-cms - Content management system
  • velox-ecommerce - E-commerce functionality
  • velox-analytics - Analytics and monitoring
  • velox-payments - Payment processing
  • velox-social - Social authentication

📈 Comparison

Feature Velox Django FastAPI Laravel
Async Support ✅ Native ⚠️ Partial ✅ Native ❌ No
Performance ⚡ Very High 🔥 Medium ⚡ Very High 🔥 Medium
Learning Curve 📈 Gentle 📈 Steep 📈 Medium 📈 Gentle
Auto API Docs ✅ Yes ❌ No ✅ Yes ⚠️ Manual
Admin Panel ✅ Built-in ✅ Built-in ❌ No ❌ No
ORM ✅ Advanced ✅ Good ❌ No ✅ Eloquent
Type Safety ✅ Full ⚠️ Partial ✅ Full ❌ No

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

git clone https://github.com/veloxframework/velox.git
cd velox
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -e ".[dev]"
pre-commit install
pytest

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Inspired by Django's batteries-included philosophy
  • Built on the async foundation of FastAPI
  • Influenced by Laravel's elegant developer experience
  • Powered by modern Python 3.12+ features

🎉 Community


Made with ❤️ by the Velox Framework Team

Metadata

Release files for velox-framework 0.1.0

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

Source distribution (sdist)

Source distribution for velox-framework 0.1.0
File Size Uploaded
velox_framework-0.1.0.tar.gz 79.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for velox-framework 0.1.0
File Interpreter ABI Platform
velox_framework-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 172.2 kB

Release files / velox_framework-0.1.0.tar.gz

Download URL velox_framework-0.1.0.tar.gz
Size 79.7 kB
Tags Source
SHA-256 checksum
How to use checksums
76d6cd5338e4f41ddee4a18033ed94bc0be23da4ddf169f8e30406a3124a1df6
BLAKE2b-256 checksum
How to use checksums
0c30c37f5223e48d8a618a74c81c27b634dc3bc51110e0c4590052be957f13a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release files / velox_framework-0.1.0-py3-none-any.whl

Download URL velox_framework-0.1.0-py3-none-any.whl
Size 92.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8540260ed68d412a95489c6767efd4103cbe0a1f82c765575a15fdde4db851c6
BLAKE2b-256 checksum
How to use checksums
85f619a568a8ed637beb0dead139567579d30e1afe2d2b6135baccdc5b83e012
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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