Skip to main content

ML Project Quickstart

Project description

📖 bukka: Django-Inspired ML Infrastructure CLI

bukka is a Python command-line interface (CLI) tool designed to dramatically reduce the boilerplate and setup time for new Machine Learning (ML) projects. Inspired by the structure and speed of the Django framework's startproject command, bukka lets you instantly scaffold a robust, standardized, and ready-to-use project infrastructure.


✨ Features

  • Django-Inspired Structure: Creates a logical, maintainable folder hierarchy optimized for ML workflows (data, models, notebooks, scripts).
  • Automated Environment Setup: Automatically generates a Python virtual environment (.venv) to isolate your project dependencies.
  • Dependency Management: Creates a starting requirements.txt file with essential ML packages (e.g., NumPy, Pandas, Scikit-learn).
  • CLI Simplicity: Use simple, intuitive commands to create a complete project skeleton in seconds.

🚀 Quick Start

1. Installation

bukka is available on PyPI.

pip install bukka

2. Creating a New Project

Use bukka command, similar to Django, followed by your desired project name.

# Example: Create a new project named 'titanic'
python -m bukka -n titanic -d titanic.csv

This command will:

  1. Create the folder in the root directort: titanic/
  2. Create and configure a virtual environment: titanic/.venv/
  3. Generate the initial dependency file: titanic/requirements.txt
  4. Install the packages in the requirements.txt.
  5. Copy the data file to your data folder.
  6. Split the dataset into a training and test set.
  7. Provides a reasonable pipelines based on an adhoc scan of your dataset.

(Coming soon, the command will also do the following):

  1. Provide a few baseline models you can compare to, e.g. using random guessing.
  2. Provide placeholder utility classes you can customize for your project.
  3. Initialize MLFlow to track your parameters and results.
  4. Provide starter notebooks, so you can get to machine learning ASAP.

🌳 Standard Project Structure

When you run python -m bukka.bukka -n <name>, the following standardized structure is created, ensuring consistency across all your ML projects:

<project_name>/
├── .venv/                         # Isolated Python Virtual Environment
├── data/                          # Storage for raw, processed, and external data
│   ├── test/                      # Unprocessed, immutable source data
│   ├── train/                     # Cleaned and processed data ready for modeling
├── pipelines/                     # Pipelines
│   ├── __init__.py                # Makes 'pipelines' a Python package
│   ├── baseline/                  # Placeholder, this will store pipelines that provide baselines (e.g. naive classifiers)
│   ├── candidate/                 # Contender pipelines
│   ├── generated/                 # Placeholder, this will contain pipelines generated by the schema analyzer.
├── scripts/                       # Python scripts for automation (currently empty)
├── requirements.txt               # Project dependencies file

🎶 About the Name

The library is named after Bukka White, a country blues guitarist whorecorded from the late 30s and 40s, before being rediscovered in the 60s. One of my favorites by him is Fixin' to Die Blues. Country blues guitarists use their technical skill with the guitar to back their singing to create a very complete sound, using their thumb to play rhythym and their fingers to play a melodyand harmonize over that giving it the sound of multiple guitarists.

The choice to name the library after a guitarist is inspired, like much of the rest of this project, by the library Django, named for Django Reinhardt, another phenomenal guitarist.


🤝 Contributing

We welcome contributions! If you have suggestions for new structural templates, essential starter packages, or commands, please open an issue or submit a pull request.


📄 License

This project is licensed under the Apache License. See the LICENSE file for details.

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

bukka-0.0.3.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

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

bukka-0.0.3-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file bukka-0.0.3.tar.gz.

File metadata

  • Download URL: bukka-0.0.3.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bukka-0.0.3.tar.gz
Algorithm Hash digest
SHA256 cabd3eac65e2c1074ae0a25a8a40b7bf2c1b968744d3cd4507829c7c5680c88f
MD5 4043b9fea6ddf63644e24cc211141d4c
BLAKE2b-256 840af0d8d17269725a6c9f220776a7355b2266c235b3b821bf3aa20fbcf2582d

See more details on using hashes here.

Provenance

The following attestation bundles were made for bukka-0.0.3.tar.gz:

Publisher: python-publish.yml on pjachim/Bukka

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bukka-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: bukka-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bukka-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4ec5886c0bc66f638878dde1e4bfa2376dee8639714c7ec5cf3d303a976d16df
MD5 c926127def23aedab188a69a52b1c9df
BLAKE2b-256 1e27867ab884d0b81b5670447c7cff48960574ee2d0adb93cf755fb9dab6e250

See more details on using hashes here.

Provenance

The following attestation bundles were made for bukka-0.0.3-py3-none-any.whl:

Publisher: python-publish.yml on pjachim/Bukka

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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