Skip to main content

Create a ready-to-use ML project structure with one command.

Project description

๐Ÿš€ mlscaffold

mlscaffold is a Python CLI tool to bootstrap Machine Learning projects quickly.
It creates a clean folder structure, boilerplate files, and an ML workflow checklist, so you can start coding immediately.

Think of it as create-react-app โ€” but for ML projects.


โœจ Features

  • ๐Ÿ“‚ Automatically generates a standard ML project structure
  • ๐Ÿ“ Includes ML_Workflow.txt for step-by-step guidance
  • โšก Boilerplate folders and files:
    • src/ โ†’ Python source code (main.py, __init__.py)
    • data/raw & data/processed โ†’ Data storage
    • models/ โ†’ Trained models
    • notebooks/ โ†’ Jupyter notebooks
    • docs/ โ†’ Project documentation
    • tests/ โ†’ Unit or smoke tests
    • requirements.txt โ†’ Python dependencies
    • .gitignore โ†’ Recommended ignores
  • ๐Ÿง‘โ€๐Ÿ’ป Easy to use and extend
  • ๐Ÿ”„ Works on Windows, Linux, and Mac

๐Ÿ“ฆ Installation

pip install mlscaffold

๐Ÿš€ Usage

Create a new ML project:

mlscaffold my-ml-project

output

โœ… ML project 'my-ml-project' created at: /your/path/my-ml-project
๐Ÿ‘‰ Next : cd my-ml-project

๐Ÿ“ Project Structures

mlscaffold supports three project types: basic, research, and production. Choose the one that fits your workflow:

1. Basic

For quick experiments, prototypes, or simple scripts.

my-ml-project/
โ”œโ”€ src/
โ”‚  โ”œโ”€ __init__.py
โ”‚  โ””โ”€ main.py
โ”œโ”€ data/
โ”œโ”€ models/
โ”œโ”€ notebooks/
โ”œโ”€ tests/
โ”‚  โ””โ”€ test_smoke.py
โ”œโ”€ ML_Workflow.txt
โ”œโ”€ requirements.txt
โ”œโ”€ README.md
โ””โ”€ .gitignore

2. Research

For academic, research, or more complex projects with experiments and documentation.

my-ml-project/
โ”œโ”€ src/
โ”‚  โ”œโ”€ __init__.py
โ”‚  โ””โ”€ main.py
โ”œโ”€ data/
โ”‚  โ”œโ”€ raw/
โ”‚  โ””โ”€ processed/
โ”œโ”€ models/
โ”œโ”€ notebooks/
โ”œโ”€ docs/
โ”œโ”€ experiments/
โ”œโ”€ tests/
โ”‚  โ””โ”€ test_smoke.py
โ”œโ”€ ML_Workflow.txt
โ”œโ”€ requirements.txt
โ”œโ”€ README.md
โ””โ”€ .gitignore

3. Production

For production-ready ML systems, APIs, and CI/CD integration.

my-ml-project/
โ”œโ”€ src/
โ”‚  โ”œโ”€ __init__.py
โ”‚  โ””โ”€ main.py
โ”œโ”€ data/
โ”œโ”€ models/
โ”œโ”€ notebooks/
โ”œโ”€ docs/
โ”œโ”€ api/
โ”œโ”€ tests/
โ”‚  โ””โ”€ test_smoke.py
โ”œโ”€ .github/
โ”‚  โ””โ”€ workflows/
โ”‚      โ””โ”€ ci.yml
โ”œโ”€ Dockerfile
โ”œโ”€ ML_Workflow.txt
โ”œโ”€ requirements.txt
โ”œโ”€ README.md
โ””โ”€ .gitignore

ML_Workflow.txt includes the full ML workflow checklist:

0) Project setup
1) Problem framing
2) Data collection
3) Preprocessing
4) Exploratory Data Analysis (EDA)
5) Baseline & Models
6) Training & Evaluation
7) Hyperparameter Tuning
8) Packaging & Artifacts
9) Deployment
10) Monitoring & Iteration

๐Ÿค Contributions

We welcome contributions! Please read CONTRIBUTIONS.md

Project details


Download files

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

Source Distribution

mlscaffold-0.2.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

mlscaffold-0.2.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file mlscaffold-0.2.0.tar.gz.

File metadata

  • Download URL: mlscaffold-0.2.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mlscaffold-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7fc36e668c3cf2ecff6d1960b07db6d994cf0df042e8d32ae1b595113edfc196
MD5 23b92452ef4522b392dc6f4b7ccf235c
BLAKE2b-256 387ecc548b21e96bed4f538da127ed80a1bc101022eab92ed7d48c3e63973119

See more details on using hashes here.

File details

Details for the file mlscaffold-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: mlscaffold-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mlscaffold-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61c772f7139ff806ae5b4c26f43fd45644a47b2475258b7268a98026c2ec8543
MD5 ea4a7de965844b734556d2abfc90510e
BLAKE2b-256 7881d5466d1b829caf60763fe3be41acab0f2e862ddc70044f767b567fb32f63

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