fmind/mlops-python-package

Production-shaped MLOps Python package and reference implementation of the MLOps Coding Course: MLflow, scikit-learn, Pydantic, Pandera, uv, and mise.

What it solves

This project provides a standardized, production-ready foundation for MLOps projects. It eliminates the need to build infrastructure from scratch by offering a pre-configured, modular Python codebase that handles common tasks like model training, evaluation, experiment tracking, and deployment.

How it works

The package acts as a template and toolkit that you can adapt to your specific needs. It uses configuration files (YAML) to define jobs—such as training or inference—which are then executed via a command-line interface. It integrates a wide array of industry-standard tools for automation, testing, and security, all managed through a unified task runner called mise to ensure consistency between your local development environment and your CI/CD pipelines.

Who it’s for

This is designed for data scientists and machine learning engineers who want to follow software engineering best practices. It is ideal for those who need a robust, maintainable structure for their ML projects, ranging from experiment tracking to model registry and real-time inference.

Highlights

  • Unified Tooling: Uses mise to manage the entire toolchain, ensuring local development and CI/CD environments stay in sync.
  • Production-Ready: Includes built-in support for MLflow (tracking, registry, evaluation) and Docker containerization.
  • Automated Quality: Enforces high standards with automated testing (Pytest), static analysis (Ruff), and security scanning (Trivy, Gitleaks).
  • Flexible Configuration: Uses Pydantic and OmegaConf to validate and manage project settings, allowing for easy experimentation without changing core code.
  • CI/CD Ready: Comes with pre-built GitHub Actions workflows for continuous integration, deployment, and security auditing.

Related

  • Project
  • Project
  • Project
  • Project
  • Project