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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlscaffold-0.2.1.tar.gz
  • Upload date:
  • Size: 5.9 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.1.tar.gz
Algorithm Hash digest
SHA256 20e72e662f30a2a32fede64445872d13ddfd04a8ec69609b5134f1448528ce60
MD5 b22ec6dc1e03c95f2a5c52374738f351
BLAKE2b-256 3cd71ebdebdf7dc07d0352a532e6518f08c9d98bab19dc282c8117300af3828d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mlscaffold-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 52eb8b72daaded047f5365d2d5e50efa484770e4854d55eb36cc6ce474db7bbf
MD5 619f18970e58c24d46f444f6c48c8983
BLAKE2b-256 c97740dbdaa856c2e824e3ee034a5adb6c272ee4b156bfc959454e8f1caa1fab

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