Generate production-ready MLOps project templates β via Web UI or CLI.
Scikit-learn Β· PyTorch Β· TensorFlow Β· Multi-cloud Β· Zero setup required.
This stack supports the full MLOps lifecycle:
Data β Train β Track β Orchestrate β Deploy β Monitor β Improve
π Major Enterprise-Grade Enhancements:
- π§ Advanced CLI Commands - clone, archive, check_deps, profile, migrate, doctor
- π Enhanced Analytics System - AI-powered insights, trending analysis, benchmarking
- βοΈ Advanced Configuration Management - Environment configs, templates, pipelines
- βοΈ Production-Ready Cloud Deployment - Real AWS templates, CI/CD, monitoring
- π Project Lifecycle Management - Smart cloning, migration, health checks
- οΏ½ Security-First Approach - Vulnerability scanning, best practices, compliance
π New CLI Commands:
mlops-project-generator clone <source> --name <target>
mlops-project-generator archive <project> --type zip
mlops-project-generator check_deps --update --security
mlops-project-generator profile --format json
mlops-project-generator migrate <old> <new-framework>
mlops-project-generator doctor --fix --deep- π§ Framework Support: Scikit-learn, PyTorch, TensorFlow/Keras
- π Task Types: Classification, Regression, Time-Series, NLP, Computer Vision
- π― Stack Presets: 6 pre-configured MLOps stacks (Quick Start, Data Science, Deep Learning, Production MLOps, Enterprise, Research)
- π Web UI: Browser-based generator β no install needed
- π€ CI/CD Ready: Non-interactive CLI mode for DevOps pipelines
- π Experiment Tracking: MLflow, W&B, Custom solutions
- π― Orchestration: Airflow, Kubeflow
- π Deployment: FastAPI, Docker, Kubernetes, Cloud platforms
- οΏ½ Monitoring: Evidently AI, Custom solutions
- βοΈ Cloud Deployment: Multi-cloud templates (AWS, GCP, Azure)
- π clone: Smart project cloning with configuration preservation
- π¦ archive: Selective project archiving (exclude data/models)
- π check_deps: Dependency management with security vulnerability scanning
- π profile: Performance profiling and resource usage analysis
- π migrate: Framework migration with automated code conversion
- π©Ί doctor: Comprehensive health checks with auto-fix capabilities
- π Trending Analysis: Framework usage, complexity trends, deployment patterns
- π€ AI-Powered Insights: Actionable recommendations based on project patterns
- π Benchmarking: Compare projects against historical data
- π Productivity Metrics: Projects per month, file/line generation statistics
- π Export Reports: Comprehensive analytics reports in JSON format
- π Environment Configs: Development/staging/production configurations
- π Configuration Templates: Reusable templates for different use cases
- π Configuration Pipelines: Multi-stage deployment configurations
- π Diff & Merge: Configuration comparison and merging capabilities
- πΎ Backup & Restore: Configuration backup and restoration system
- π³ Real Dockerfiles: Multi-stage builds with security best practices
- βοΈ AWS Templates: Production-grade CloudFormation, Terraform-ready
- π CI/CD Integration: GitHub Actions with testing, security scanning, deployment
- π Monitoring Setup: CloudWatch dashboards, alerting configurations
- π Security Best Practices: IAM roles, VPC configuration, encryption
Choose from 6 pre-configured MLOps stacks tailored for different use cases:
| Preset | Framework | Tracking | Orchestration | Deploy | Monitor |
|---|---|---|---|---|---|
| β‘ Quick Start | Sklearn | None | None | FastAPI | None |
| π§ͺ Data Science | Sklearn | MLflow | None | FastAPI | Custom |
| π§ Deep Learning | PyTorch | W&B | None | Docker | None |
| π‘ Production MLOps | PyTorch | MLflow | Airflow | Docker | Evidently |
| π’ Enterprise | TensorFlow | MLflow | Kubeflow | Kubernetes | Evidently |
| π¬ Research | PyTorch | W&B | None | FastAPI | None |
Use presets via CLI: mlops-project-generator init --preset <name> or select them in the Web UI.
The fastest way to generate a project β open it in your browser, fill in the form, and download a ready-to-use ZIP.
cd web_ui
npm install
npm run dev
# β http://localhost:3000The web UI is a Next.js 15 app with no external backend dependency. The generator runs entirely as Next.js API routes β deploy to Vercel, Netlify, Railway, or any Node.js host:
cd web_ui
npm run build
npm startVercel one-click deploy: set the root directory to
web_uiand it works out of the box.
| Layer | Technology |
|---|---|
| Framework | Next.js 15 (App Router) |
| Styling | Tailwind CSS v4 + Glassmorphism |
| Forms | react-hook-form + zod |
| Generator | Pure TypeScript (no Python runtime needed) |
| ZIP output | archiver |
Prefer the command line? Install the Python package:
pip install mlops-project-generator==2.0.1git clone https://github.com/NotHarshhaa/MLOps-Project-Generator.git
cd MLOps-Project-Generator
pip install -e .pip install -e ".[dev]"mlops-project-generator init# Quick start with preset
mlops-project-generator init --preset quick-start
# Enterprise stack with custom project name
mlops-project-generator init --preset enterprise --project-name my-platform
# Override preset values
mlops-project-generator init --preset production-mlops --deployment kubernetes
# List all available presets
mlops-project-generator list-presetsmlops-project-generator init \
--framework pytorch \
--task-type classification \
--tracking mlflow \
--orchestration airflow \
--deployment docker \
--monitoring evidently \
--project-name enterprise-ml \
--author-name "ML Team" \
--description "Production ML pipeline"| Command | Description |
|---|---|
init |
Generate a new MLOps project |
validate |
Validate an existing project structure |
version |
Show version |
| Command | Description |
|---|---|
save-preset <name> |
Save current config as a preset |
list-presets |
List all presets |
load-preset <name> |
Load a preset |
delete-preset <name> |
Delete a preset |
| Command | Description |
|---|---|
create-template <name> <framework> |
Create a custom template |
list-templates |
List custom templates |
delete-template <name> |
Delete a template |
add-template-file <template> <path> |
Add a file to a template |
| Command | Description |
|---|---|
clone <source> |
Clone existing projects with configuration preservation |
archive <project> |
Project archiving with selective content inclusion |
check_deps |
Dependency management with security vulnerability scanning |
profile |
Performance profiling and resource usage analysis |
migrate <old> <new> |
Framework migration with automated conversion |
doctor |
Comprehensive project health check with auto-fix capabilities |
| Command | Description |
|---|---|
stats |
Show generation statistics and trends |
analyze <path> |
Analyze a generated project with AI insights |
benchmark <project> |
Compare project against historical baselines |
export-analytics |
Export comprehensive analytics reports |
| Command | Description |
|---|---|
save-preset <name> |
Save current config as a preset |
list-presets |
List all presets |
load-preset <name> |
Load a preset |
delete-preset <name> |
Delete a preset |
backup-config |
Backup all project configurations |
restore-config <backup> |
Restore from configuration backup |
diff-configs <config1> <config2> |
Compare two configurations |
merge-configs <base> <other> |
Merge configuration files |
| Flag | Short | Values |
|---|---|---|
--framework |
-f |
sklearn, pytorch, tensorflow |
--task-type |
-t |
classification, regression, timeseries, nlp, computer-vision |
--tracking |
-r |
mlflow, wandb, custom, none |
--orchestration |
-o |
airflow, kubeflow, none |
--deployment |
-d |
fastapi, docker, kubernetes |
--monitoring |
-m |
evidently, custom, none |
--project-name |
-p |
Any valid identifier |
--author-name |
-a |
Any string |
--description |
--desc |
Any string |
- Vulnerability Scanning: Automated security checks for dependencies
- IAM Best Practices: Proper role-based access controls
- VPC Configuration: Network isolation and security groups
- Encryption: Data encryption at rest and in transit
- Compliance Templates: SOC2, GDPR, HIPAA-ready configurations
- CloudWatch Integration: Real-time metrics and alerting
- Dashboard Templates: Pre-built monitoring dashboards
- Performance Profiling: Resource usage analysis and optimization
- Health Checks: Comprehensive system validation with auto-fix
- SLA Monitoring: Service level agreement tracking
- GitHub Actions: Complete workflows with testing, security, deployment
- Multi-Stage Dockerfiles: Optimized builds with security best practices
- Automated Testing: Unit, integration, and end-to-end tests
- Security Scanning: Code quality and vulnerability analysis
- Rollback Strategies: Automated rollback capabilities
# Generate comprehensive analytics report
mlops-project-generator export-analytics --format json --output report.json
# Analyze project performance
mlops-project-generator profile --project my-ml-platform --format json
# Benchmark against historical data
mlops-project-generator benchmark my-project --baseline industry-standard# Clone project with configuration preservation
mlops-project-generator clone existing-project --name new-project --exclude-data# Migrate from sklearn to pytorch
mlops-project-generator migrate sklearn-project pytorch --auto-convert# Check dependencies with security scanning
mlops-project-generator check_deps --update --security --fix# Comprehensive health check with auto-fix
mlops-project-generator doctor --fix --deep --generate-reportyour-project/
βββ src/
β βββ data/ # Data loading utilities
β βββ models/ # Model implementations
β βββ features/ # Feature engineering (sklearn)
β βββ utils/ # Training utilities (pytorch/tensorflow)
β βββ train.py # Training entry point
β βββ inference.py # Inference / FastAPI server
βββ configs/
β βββ config.yaml # Project configuration
βββ data/
β βββ raw/
β βββ processed/
β βββ external/
βββ models/
β βββ checkpoints/
β βββ production/
βββ notebooks/
βββ tests/
β βββ test_model.py
βββ cloud/ # Cloud deployment files (if selected)
β βββ <provider>/<service>/
β βββ Dockerfile
β βββ cloud-config.yaml
β βββ deploy.sh
βββ requirements.txt
βββ Makefile
βββ .gitignore
βββ .env.example
βββ project_config.json
βββ README.md
- RandomForest / Ridge with cross-validation and joblib serialization
DataLoader+FeatureEngineerclasses ready to extend- FastAPI inference server included when
--deployment fastapi
- Configurable
nn.Sequentialmodel with Dropout - Full training loop with
DataLoader, early stopping torch.save/torch.loadmodel persistence
keras.Sequentialwith BatchNorm and DropoutEarlyStoppingcallback pre-configuredmodel.save()/tf.keras.models.load_model()persistence
mlflow.set_tracking_uri("http://localhost:5000")
with mlflow.start_run():
mlflow.log_params(config["model"])
mlflow.log_metrics({"accuracy": 0.95})wandb.init(project="my-project")
wandb.log({"loss": 0.12, "accuracy": 0.95})
wandb.finish()uvicorn src.inference:app --reload
# β http://localhost:8000/docsdocker build -t my-ml-project .
docker run -p 8000:8000 my-ml-projectkubectl apply -f k8s/from evidently.report import Report
from evidently.metric_preset import DataDriftPreset
report = Report(metrics=[DataDriftPreset()])
report.run(current_data=current, reference_data=reference)name: Generate ML Project
on:
workflow_dispatch:
inputs:
framework:
type: choice
options: [sklearn, pytorch, tensorflow]
project_name:
type: string
default: ml-project
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: pip install mlops-project-generator
- run: |
mlops-project-generator init \
--framework ${{ github.event.inputs.framework }} \
--project-name ${{ github.event.inputs.project_name }} \
--tracking mlflow \
--deployment docker
- uses: actions/upload-artifact@v3
with:
name: ${{ github.event.inputs.project_name }}
path: ${{ github.event.inputs.project_name }}/generate_ml_project:
image: python:3.11
script:
- pip install mlops-project-generator
- mlops-project-generator init \
--framework $FRAMEWORK \
--project-name $PROJECT_NAME \
--tracking mlflow \
--deployment docker
artifacts:
paths: [$PROJECT_NAME/]
expire_in: 1 weekMLOps-Project-Generator/
βββ generator/ # Python CLI source
β βββ cli.py # Typer CLI entry point
β βββ renderer.py # Jinja2 template renderer
β βββ validators.py # Input validation
β βββ cloud_deployer.py # Cloud template generation
β βββ ...
βββ templates/ # Jinja2 project templates
β βββ common/ # Shared across all frameworks
β βββ sklearn/
β βββ pytorch/
β βββ tensorflow/
βββ web_ui/ # Next.js web application
β βββ app/
β β βββ api/ # Next.js API routes (generator backend)
β β βββ generate/ # POST β start generation
β β βββ status/ # GET β poll task status
β β βββ download/ # GET β download ZIP
β β βββ options/ # GET β dropdown options
β βββ src/
β βββ lib/
β βββ generator/ # Pure TS generator (no Python needed)
β βββ task-store.ts
βββ tests/ # Python CLI tests
βββ pyproject.toml
βββ README.md
pytest tests/ -v
pytest tests/ --cov=generator --cov-report=htmlgit clone https://github.com/NotHarshhaa/MLOps-Project-Generator.git
cd MLOps-Project-Generator
pip install -e ".[dev]"
black generator/ tests/
isort generator/ tests/
flake8 generator/ tests/
mypy generator/Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- Submit a pull request
MIT β see LICENSE for details.
- Typer Β· Beautiful Python CLI framework
- Next.js Β· React framework powering the Web UI
- Rich Β· Stunning terminal output
- archiver Β· ZIP generation for project downloads
- π GitHub Issues
- π¬ GitHub Discussions
- Python CLI with interactive + non-interactive modes
- Scikit-learn, PyTorch, TensorFlow project templates
- MLflow, W&B experiment tracking integration
- Multi-cloud deployment templates (AWS, GCP, Azure)
- Configuration presets and template customization
- Project analytics and validation
- Web UI β Next.js app with glassmorphism UI (v1.0.8)
- Backend migration β generator ported to pure TypeScript, no Python runtime needed on the server (v1.0.8)
- Stack Presets β 6 pre-configured MLOps stacks (Quick Start, Data Science, Deep Learning, Production MLOps, Enterprise, Research) (v1.0.8)
- Advanced CLI Commands β clone, archive, check_deps, profile, migrate, doctor (v2.0.0)
- Enhanced Analytics β AI-powered insights, trending analysis, benchmarking (v2.0.0)
- Production-Ready Deployment β Real AWS templates, CI/CD, monitoring (v2.0.0)
- Security-First Approach β Vulnerability scanning, best practices (v2.0.0)
- Configuration Management β Environment configs, templates, pipelines (v2.0.0)
- Additional frameworks (XGBoost, LightGBM, HuggingFace)
- Shareable project config links
- Template marketplace
- Team collaboration features
β If you find this useful, please give it a star on GitHub!
Generated with β€οΈ by MLOps Project Generator




