Skip to main content

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, 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.1

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.1.tar.gz (22.4 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.1-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vega_framework-0.1.1.tar.gz
  • Upload date:
  • Size: 22.4 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

Hashes for vega_framework-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5efb9dc579d2721be9c4603b86b0e11ca2b7e92d57ec82aa2299f284ed5b52fe
MD5 6fe9eea1166725c3f9e5a709a992d6bc
BLAKE2b-256 45e5e4b3fe7fb1d709d0e3173584d96b0e75dbeada39c5121235d4e1db25a141

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vega_framework-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 31.7 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

Hashes for vega_framework-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 05d799c11dc2fbb3ade2b597b88b71e0332a3c9684421d128cf1d2ebc8e2e2b3
MD5 f0b0b9a5ed036d1d4a6171c1866e6fba
BLAKE2b-256 4a86869f4f3fd161cb383fd02447a005e64f4e4739026004626a9d313f982c28

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