Skip to main content

Lightweight Python framework for Clean Architecture with automatic dependency injection

Project description

Vega Framework

A lightweight Python framework for building applications with Clean Architecture principles.

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, interactors
  • application/ - Mediators and workflows
  • infrastructure/ - Repository and service implementations
  • config.py - DI container setup
  • settings.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

This version

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vega_framework-0.1.0.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vega_framework-0.1.0-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file vega_framework-0.1.0.tar.gz.

File metadata

  • Download URL: vega_framework-0.1.0.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.2 Windows/11

File hashes

Hashes for vega_framework-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ebaa56757ea9027c1a1362aff43b107a8d98ea8423fdfebdafe859e786a9dfd3
MD5 a33b9cb7b478077ae5a4dae97d36cf8a
BLAKE2b-256 9f79f13a4d9dd6079b9eb400a5605fbd21c982e91eb653dc72213293551b805f

See more details on using hashes here.

File details

Details for the file vega_framework-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vega_framework-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.2 Windows/11

File hashes

Hashes for vega_framework-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19f1b0a82103a7d28c2719e2485265dda31cda272289a28ebae6f8d58c13af1b
MD5 39b9f21aed23aa1882a3ebcfa01e0015
BLAKE2b-256 9d778de5477dd9d0ae55f25dda99a86126c20a56d88b1acf12dd9be3f2b4bed4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page