A production-ready project generator for modern Python microservices
Project description
Microforge 🔥
A production-ready project generator for modern Python microservices.
Quick Start
# Install
pip install microforge
# Generate a microservice
microforge new myservice
# Run the service
cd myservice
docker-compose up
Features
- FastAPI - Modern async web framework
- Celery - Distributed task queue
- Docker - Containerization with docker-compose
- Kubernetes - Helm charts for deployment
- CI/CD - Azure DevOps, GitHub Actions, GitLab CI
- Observability - OpenTelemetry + Prometheus metrics
- Database - PostgreSQL support (optional)
- Authentication - OAuth2 support (optional)
Usage
Basic Project
microforge new myservice
With Options
microforge new myservice --db postgres --broker redis --ci github --auth oauth2 --git
Available Options
--db- Database:postgres--broker- Message broker:redis,kafka--ci- CI/CD:azure,github,gitlab--auth- Authentication:oauth2--git- Initialize Git repository
Generated Project Structure
myservice/
├── app/ # FastAPI application
│ ├── main.py # Main application
│ ├── routes/ # API routes
│ ├── core/ # Core functionality
│ ├── db/ # Database (if --db postgres)
│ └── auth/ # Authentication (if --auth oauth2)
├── worker/ # Celery worker
├── tests/ # Test suite
├── helm/ # Kubernetes deployment
├── Dockerfile # Container image
├── docker-compose.yml # Local development
└── pyproject.toml # Dependencies
Development
# Clone repository
git clone https://github.com/klejdi94/microforge-cli.git
cd microforge-cli
# Install dependencies
pip install -e .
# Run tests
python -m pytest
# Build package
python -m build
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Start forging microservices today! 🔥
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
microforge_cli-0.1.1.tar.gz
(19.9 kB
view details)
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 microforge_cli-0.1.1.tar.gz.
File metadata
- Download URL: microforge_cli-0.1.1.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7ea140df0ee9368fb95a1db9bd0f52520888c0f6143b44929209d6c1910694c
|
|
| MD5 |
025dd112044e85f1ab8368bc6a61b5ab
|
|
| BLAKE2b-256 |
92431b1b342c5c5abe231e3c7f2d2706c3bf6dd3f81525b7f3a3a8bde4ad9612
|
File details
Details for the file microforge_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: microforge_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 31.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a54def7e1078f149534c4b85d59d804d196f29aa1a0c549169007d9934a5bb4
|
|
| MD5 |
fb21d0e8db6076bbd4c33025c252c1ae
|
|
| BLAKE2b-256 |
df18a9ee3da61b342ad88c92122da69ee640df2d5c2e881471b7ecd2133efb63
|