fmind/cookiecutter-mlops-package

Start building and deploying Python packages and Docker images for MLOps tasks.

What it solves

This project provides a standardized, production-ready foundation for MLOps projects. It eliminates the overhead of manually setting up consistent tooling for testing, packaging, and deploying AI/ML code, ensuring that your development environment, CI/CD pipelines, and container configurations are robust and secure from the start.

How it works

It uses a Cookiecutter template to generate a structured Python project. Once generated, it leverages mise to manage a unified task vocabulary (such as install, check, and test) that remains identical across your local machine, Git hooks, and GitHub Actions. The template integrates a modern Python stack—including uv for dependencies, Ruff for linting, and ty for type checking—alongside automated security scanning for dependencies, secrets, and Docker images.

Who it’s for

This template is designed for data scientists and ML engineers who want to follow best practices for building, testing, and packaging AI/ML code. It is ideal for those who need a flexible starting point that can be deployed across various platforms like Kubernetes, Vertex AI, or AWS SageMaker.

Highlights

  • Unified Task Management: Uses mise to ensure the same commands work locally and in CI/CD.
  • Security-First Design: Includes built-in scanning for vulnerabilities, secrets, and misconfigurations via tools like pip-audit, gitleaks, and Trivy.
  • Automated Testing: Validates the generated project by running its own gate, including Docker builds and MLflow CLI checks.
  • Production Ready: Comes with pre-configured GitHub Actions for CI/CD, documentation hosting, and container image management.
  • MLflow Integration: Includes a local SQLite-backed MLflow setup for tracking and model registry metadata.

Related

  • Project
  • Project
  • Project
  • Project
  • Project