Skip to main content

CLI to turn DS scripts to composable pipelines.

Project description

mlopscli 🚀

A CLI tool to turn DS Python scripts + YAML config into an executable ML pipeline.

Usage

  1. Write your scripts focussing on different steps in ML Lifecyle (data_prep.py, train_model.py, evaluate_model.py)
  2. Define them in a job_order.yaml with the dependencies.
  3. Install the mlops cli : pip install mlopscli
  4. Run the CLI command.

Commands Available

  1. Spin up a streamlit dashboard where the metadata of all the runs will be available.
mlopscli dashboard
  1. Dry Run the pipeline to ensure Job Config is valid. Validations like dependencies, file paths are checked during dry run
mlopscli dry-run --job prepare_train_pipeline --job_config job_order.yaml
  1. Execute the pipeline and get results
mlopscli execute --job prepare_train_pipeline --job_config job_order.yaml --observe

--observe : If passed, the resource consumption like CPU/Memory usage will be calculated for each step.

⚠️ NOTE :

  • If the environments already exists, it is not recreated.
  • Once the DAG is prepared, the steps in the same level are ran in parallel.
  1. Clean up Environments
mlopscli cleanup --step-name train

--step-name : If passed, the environment associated with the input step is deleted.

mlopscli cleanup --all

--all : If passed, all the environments are cleaned up.

Quick Demo

Watch the demo

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

mlopscli-0.1.4.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

mlopscli-0.1.4-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file mlopscli-0.1.4.tar.gz.

File metadata

  • Download URL: mlopscli-0.1.4.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.0 Darwin/24.4.0

File hashes

Hashes for mlopscli-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b4d39cdf56935fbdf48ce81404c5d85b99e2268db1c59e3ba83822d1457d5d36
MD5 83549103437703ea1268d91d358e8941
BLAKE2b-256 517c558a557af74e729978bcfd5ad8074db54f46fe2044dc7445f483d05c7438

See more details on using hashes here.

File details

Details for the file mlopscli-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: mlopscli-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.0 Darwin/24.4.0

File hashes

Hashes for mlopscli-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6581d42e8fd81d7797497dc4fda10816405ac2be0638bbc37813a326dbd6d672
MD5 e064cff7e7f86d3231cc9dfd02078f08
BLAKE2b-256 2b19b7781844ccaef21d068b7d44ab60fad8423aa7c2cf92f07d76c3eeff209a

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