Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

status PyPI PyPI License PyPI Python Version ReadTheDocs Build Coverage pre-commit.ci

Python client for MLflow REST API.

Features:

  • Unlike MLflow Tracking client all REST API methods are exposed to user.

  • All class fields are validated with pydantic.

  • Basic and Bearer auth is supported.

  • All methods and classes are documented.

Limitations:

  • There is no integration with ML frameworks and libraries. You should use official MLflow client instead.

  • There is no integration with S3 or other artifact storage type. You should access it directly with boto3 or other client.

  • Only Python 3.7+ is supported. Python 3.6 and lower already reached end of life.

Documentation

See https://mlflow-rest-client.readthedocs.io/

Contribution guide

See CONTRIBUTING.rst

Security

See SECURITY.rst

Installation

Stable release

Stable version is released on every tag to master branch. Please use stable releases on production environment. Version example: 2.0.0

pip install mlflow-rest-client==2.0.0 # exact version

pip install mlflow-rest-client # latest release

Development release

Development version is released on every commit to dev branch. You can use them to test some new features before official release. Version example: 2.0.0.dev5

pip install mlflow-rest-client==2.0.0.dev5 # exact dev version

pip install --pre mlflow-rest-client # latest dev version

Development

Clone repo:

git clone git@github.com:MobileTeleSystems/mlflow-rest-client.git

cd mlflow-rest-client

Install dependencies for development:

pip install -r requirements-dev.txt

Install pre-commit hooks:

pre-commit install
pre-commit autoupdate
pre-commit install-hooks

Test pre-commit hooks run:

pre-commit run --all-files -v

Usage

Make sure you have an MLflow Tracking Server running.

from mlflow_rest_client import MLflowRESTClient

client = MLflowRESTClient("https://mlflow.domain", ignore_ssl_check=True)

experiment = client.get_or_create_experiment("experiment_name")
run = client.create_run(experiment.id)

See sample.py for more examples.

Release files for mlflow-rest-client 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlflow-rest-client 2.0.0
File Size Uploaded
mlflow-rest-client-2.0.0.tar.gz 23.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mlflow-rest-client 2.0.0
File Interpreter ABI Platform
mlflow_rest_client-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 52.7 kB

Release files / mlflow-rest-client-2.0.0.tar.gz

Download URL mlflow-rest-client-2.0.0.tar.gz
Size 23.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b852c1c2b1b9bdf52f7bc0b4cb554d9d2bb60b5cc95866a0043c957bcc176587
BLAKE2b-256 checksum
How to use checksums
0135c2be8e1fb94cd76e5e2e34cd2d1ad1197fd0013d345cbc2b3a835af2ad06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

Release files / mlflow_rest_client-2.0.0-py3-none-any.whl

Download URL mlflow_rest_client-2.0.0-py3-none-any.whl
Size 28.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb4d628780d834c7ac05c5ae6408944db288476110441a2af8eb08c1f20b3427
BLAKE2b-256 checksum
How to use checksums
e69bae8dbfb1dea47ee83b77514203c0d3a9a8715a0382341976677a9d071102
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page