Skip to main content

Add-on for accessing MlFlow tracking server behing GCP IAP.

Project description


AiBox Lab
mlflow-gcp-iap

MlFlow add-on to access IAP-enabled tracking server on GCP.

Python PyPI

Quickstart

Install the library using your favorite package manager:

uv add mlflow-gcp-iap
uv pip install mlflow-gcp-iap
pip install mlflow-gcp-iap

Once the library is installed, you must configure the library by running mlflow-gcp-iap setup. The CLI will ask for the required configuration. It is essential that the GCP Application Default Credentials is configured locally, and that the user and service account have sufficient permissions. For the user, permissions related to Service Account Impersonation and token creation are required. For the service account, only the permission to access the IAP-protected MlFlow tracking server is mandatory.

To check whether the configuration works correctly, run mlflow-gcp-iap test. This command runs the script src/mlflow_gcp_iap/test.py, which creates a run on the MlFlow server. The library provides a simple context manager that automatically refresh tokens and update the MlFlow environment variables. The intended usage is as follows:

import mlflow

from mlflow_gcp_iap import TokenRefresher


if __name__ == "__main__":
    with TokenRefresher():
        with mlflow.start_run(run_name="my-run"):
            mlflow.log_params({"a": 10, "b": 20})
            mlflow.log_metrics({"MSE": 0.0})

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

mlflow_gcp_iap-0.0.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

mlflow_gcp_iap-0.0.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file mlflow_gcp_iap-0.0.1.tar.gz.

File metadata

  • Download URL: mlflow_gcp_iap-0.0.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for mlflow_gcp_iap-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b8b5225a88da84970e1bed364dd93b928afecc9d012bb2d70800d325dea1acab
MD5 242c6f44da2a6ebbc802f898b08cfefd
BLAKE2b-256 075e6041273a277bee9b5f3ad693937a398b6da2ee50b4b464e1bd3d7bdfb1e2

See more details on using hashes here.

File details

Details for the file mlflow_gcp_iap-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mlflow_gcp_iap-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d658523f80ac0986f3006d0a537e9000301c8339f60394a074045da8f23af128
MD5 e70df8ffd835cbe1fa00968f2c13b80e
BLAKE2b-256 c2bb735be2dd54481c66e58d2b08eac24e100be2e0e88dcf67356ba2a34fe69d

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