Skip to main content

boilerplate-ml

One command to start a data science or machine learning project. Run boilerplate in an empty folder and get a uv-managed Python 3.12 environment, the packages you chose, and a consistent folder layout. Existing files are never overwritten.

Install

pip install boilerplate-ml

Requires Python 3.10 or newer to run. Generated projects use Python 3.12; uv downloads it if you don't have it. uv itself is installed automatically. For an isolated install, use pipx install boilerplate-ml or uv tool install boilerplate-ml.

If boilerplate is not found after installing, your Python Scripts folder is not on PATH; python -m boilerplate always works.

Start a project

mkdir my-project
cd my-project
boilerplate

Pick a profile when asked:

Profile Installs Good for
standard NumPy, pandas, SciPy, scikit-learn, statsmodels, Matplotlib, seaborn, Plotly, JupyterLab Data exploration and classical ML
full Standard plus Polars, DuckDB, missingno, ydata-profiling, XGBoost, LightGBM, SHAP Broader tabular ML work
skeleton No packages; folders and environment only Custom stacks

Skip the questions:

boilerplate --profile full --yes

--yes uses standard if no profile is given, initializes Git, and skips the final shell prompt. --no-shell skips only that final prompt.

What you get

data/raw/  data/processed/  data/external/
notebooks/  src/  tests/  models/
reports/figures/  reports/profiling/
pyproject.toml  uv.lock  .python-version  .venv/
README.md  .env.example  .gitignore

Folders start empty (with a .gitkeep); no sample code or notebooks are created. The .gitignore keeps datasets, models, generated reports, .env files and the virtual environment out of Git.

Everyday commands afterwards:

uv add requests      # add a package
uv sync              # recreate .venv from uv.lock
uv run jupyter lab   # start JupyterLab
uv run python        # project Python

Commit pyproject.toml, uv.lock and .python-version for reproducibility.

Existing projects

Running boilerplate where a pyproject.toml already exists never replaces it. You choose to sync the existing dependencies or add a profile:

boilerplate --existing sync --yes
boilerplate --existing add --profile full --yes

Missing folders and ignore rules are added; your README and metadata are kept. With --yes, an existing project defaults to sync.

Company package indexes

boilerplate follows your normal uv configuration, including any custom index. To insist on a private index and never fall back to public PyPI, use --corporate: it requires UV_INDEX_URL plus matching credentials in your NETRC file, and disables automatic Python downloads (install Python 3.12 first).

Troubleshooting

  • invalid peer certificate / UnknownIssuer: your network inspects HTTPS traffic. Set UV_SYSTEM_CERTS=1 so uv trusts your system certificates.
  • No versions found for a package: if UV_EXCLUDE_NEWER is set, uv ignores newer releases, and every release if your index reports no upload dates.
  • Hardlink errors on OneDrive or other synced folders: boilerplate already tells uv to copy files; if you run uv yourself, set UV_LINK_MODE=copy.
  • Refuses to run in your home folder or a drive root: by design. Create a project folder first.

Development

python -m pip install -e .
python -m unittest discover -s tests -v
uv build

The version lives in src/boilerplate/__init__.py.

License

MIT

Metadata

Release files for boilerplate-ml 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for boilerplate-ml 0.1.0
File Size Uploaded Provenance Actions
boilerplate_ml-0.1.0.tar.gz 12.4 kB Without provenance Details for boilerplate_ml-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for boilerplate-ml 0.1.0
File Interpreter ABI Platform Actions
boilerplate_ml-0.1.0-py3-none-any.whl Python 3 none any Details for boilerplate_ml-0.1.0-py3-none-any.whl

Total release size: 22.8 kB

Release files / boilerplate_ml-0.1.0.tar.gz

Download URL boilerplate_ml-0.1.0.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a3869c30cc6d804c17f43185751fc8bbcb0247b83a33f47139bc5de2586a6e2f
BLAKE2b-256 checksum
How to use checksums
0b46fca58c586328701c3c40c8571f03809b9be4cf8ef24e3e2f4f5f113d098a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / boilerplate_ml-0.1.0-py3-none-any.whl

Download URL boilerplate_ml-0.1.0-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2dd22630aa43ab5b3c49046a22e68adc71c4b4935241362568d3384b907dc66a
BLAKE2b-256 checksum
How to use checksums
9d3b70e6f2cd7841a43ac860ab82d14582d95f87e4076a42aa635d55ec039ef0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for boilerplate-ml 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page