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})
Metadata
Release files for mlflow-gcp-iap 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mlflow_gcp_iap-0.0.3.tar.gz | 7.0 kB | Without provenance | Details for mlflow_gcp_iap-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mlflow_gcp_iap-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for mlflow_gcp_iap-0.0.3-py3-none-any.whl |
Total release size: 14.7 kB
Release files / mlflow_gcp_iap-0.0.3.tar.gz
| Download URL | mlflow_gcp_iap-0.0.3.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b33fcac04fb863f3026d2c46d75f7d24d3f76de10c2795adb72b96ca949f71d
|
|
BLAKE2b-256 checksum How to use checksums |
73090683b8f9f60a5d25ae00ec5ed231c8f7b926c6ee1bb8ee3cacc35a21db1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Release files / mlflow_gcp_iap-0.0.3-py3-none-any.whl
| Download URL | mlflow_gcp_iap-0.0.3-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03de595e818066fa322d112b5f4a810e0d88c558793775c0e4e23456019e7624
|
|
BLAKE2b-256 checksum How to use checksums |
5e4351909f6c8ff312dbdde65c2a15daefb8a69e55accfa5073b50ffef558347
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Security for mlflow-gcp-iap 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.