Enterprise-ready Python framework that enforces Clean Architecture for building maintainable and scalable applications.
Project description
Vega Framework
An enterprise-ready Python framework that enforces Clean Architecture for building maintainable and scalable applications.
Features
- ✅ Automatic Dependency Injection - Zero boilerplate, type-safe DI
- ✅ Clean Architecture Patterns - Interactor, Mediator, Repository, Service
- ✅ Scope Management - Singleton, Scoped, Transient lifetimes
- ✅ Type-Safe - Full type hints support
- ✅ Framework-Agnostic - Works with any domain (web, AI, IoT, fintech, etc.)
- ✅ CLI Scaffolding - Generate projects and components instantly
- ✅ Lightweight - No unnecessary dependencies
Installation
pip install vega-framework
Quick Start
# Create new project
vega init my-app
# Generate components
vega generate entity User
vega generate repository UserRepository
vega generate interactor CreateUser
# Create FastAPI project
vega init my-api --template fastapi
CLI Commands
Initialize Project
vega init <project_name> [--template basic|fastapi|ai-rag] [--path .]
Creates a new Vega project with Clean Architecture structure:
domain/- Entities, repositories, services, interactorsapplication/- Mediators and workflowsinfrastructure/- Repository and service implementationsconfig.py- DI container setupsettings.py- Application configuration
Generate Components
vega generate entity <Name>
vega generate repository <Name> [--impl memory|sql]
vega generate service <Name>
vega generate interactor <Name>
vega generate mediator <Name>
vega generate web fastapi
Validate Project
vega doctor [--path .]
Validates project structure, DI configuration, and architecture compliance.
Use Cases
Perfect for:
- AI/RAG applications
- E-commerce platforms
- Fintech systems
- Mobile backends
- Microservices
- CLI tools
- Any Python application requiring clean architecture
License
MIT
Contributing
Contributions welcome! This framework is extracted from production code and battle-tested.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vega_framework-0.1.3.tar.gz.
File metadata
- Download URL: vega_framework-0.1.3.tar.gz
- Upload date:
- Size: 29.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.13 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3639893f3a4e87571654fd5cbec2b178d19a48d5dff9e7ae976c472020311435
|
|
| MD5 |
64e7e1fef3b62eb1cc12484fe8b00b10
|
|
| BLAKE2b-256 |
c71c7755a8ac3b14f67e119cacc5b0629ec26b5a59215c92c9af55a842fec5e4
|
File details
Details for the file vega_framework-0.1.3-py3-none-any.whl.
File metadata
- Download URL: vega_framework-0.1.3-py3-none-any.whl
- Upload date:
- Size: 34.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.13 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe5eea658549b385440a6b98719e9bc023250f3bd35c21b54db8209d6b7dee2b
|
|
| MD5 |
f78a758c9170e184ddacf11ed51b7252
|
|
| BLAKE2b-256 |
190e42669db77af148c40605cae9dd97f118bb600b9d11cf851517447b4a4041
|