Skip to main content

Add your description here

Project description

MLOps Quality Assurance

This repository provides tools for quality assurance in MLOps projects, focusing on code and dependency best practices for Python and Jupyter notebooks.

Features

  • LibraryChecker: Scans Jupyter notebooks for unpinned pip installs to ensure reproducibility.
  • CLI: Command-line interface for running quality checks (see src/achs_mlops_quality/cli.py).
  • Utilities: Helpers for finding Python scripts and notebooks.

Project Structure

mlops_quality_assurance/
├── main.py
├── pyproject.toml
├── pytest.ini
├── README.md
├── uv.lock
├── src/
│   └── achs_mlops_quality/
│       ├── __init__.py
│       ├── cli.py
│       ├── models/
│       │   ├── __init__.py
│       │   └── library_checker.py
│       └── utils/
│           └── __init__.py
└── tests/
	 └── unit/
		  └── test_library_checker.py

Installation

  1. Clone the repository:
    git clone <repo-url>
    cd mlops_quality_assurance
    
  2. Install dependencies (using uv or pip):
    uv sync
    

Usage

LibraryChecker

You can use the LibraryChecker class to scan notebooks for pip install issues:

from achs_mlops_quality.models.library_checker import LibraryChecker
checker = LibraryChecker(src_path="path/to/your/notebooks")
checker.analize_notebooks()
print(f"Issues detected: {checker.issues_detected}")

CLI

A command-line interface is available. Run:

uv run main.py --help

Testing

Run unit tests with pytest:

uv run pytest

Contributing

Contributions are welcome! Please open issues or pull requests for improvements or bug fixes.

License

MIT License

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

mlops_quality_assurance-0.1.1.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

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

mlops_quality_assurance-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file mlops_quality_assurance-0.1.1.tar.gz.

File metadata

File hashes

Hashes for mlops_quality_assurance-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a14a9ae5c062852273e9f810f80a67830074a72e8f3e29523b47b0f3e600aab4
MD5 76875e539db31f86ec720fda4dd13721
BLAKE2b-256 8b9281b5abbf41fe91a26c64614dca115206e27bbdd840f99aab0fce19c12995

See more details on using hashes here.

File details

Details for the file mlops_quality_assurance-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mlops_quality_assurance-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5d4634c328b2d6d0ad9344200df7d7f65eefb86083274d86d915fff75724392
MD5 0c0b6d6bc41267272d0a683e3485d77d
BLAKE2b-256 66be4d6cc73483ff0ed6a1049c12f0982621d95a77ad11b369769002c5083030

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