Add-on for accessing MlFlow tracking server behing GCP IAP.
Project description
mlflow-gcp-iap
MlFlow add-on to access IAP-enabled tracking server on GCP.
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 it 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlflow_gcp_iap-0.0.3.tar.gz.
File metadata
- Download URL: mlflow_gcp_iap-0.0.3.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b33fcac04fb863f3026d2c46d75f7d24d3f76de10c2795adb72b96ca949f71d
|
|
| MD5 |
c082478b2ad603cb10a472f64b1bcf90
|
|
| BLAKE2b-256 |
73090683b8f9f60a5d25ae00ec5ed231c8f7b926c6ee1bb8ee3cacc35a21db1e
|
File details
Details for the file mlflow_gcp_iap-0.0.3-py3-none-any.whl.
File metadata
- Download URL: mlflow_gcp_iap-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03de595e818066fa322d112b5f4a810e0d88c558793775c0e4e23456019e7624
|
|
| MD5 |
6197fbfb08fec7b053aaeaac27dab4d8
|
|
| BLAKE2b-256 |
5e4351909f6c8ff312dbdde65c2a15daefb8a69e55accfa5073b50ffef558347
|