Skip to main content

mlflow-token

Obtain an access token for an MLFlow instance deployed behind OAuth2-proxy and keycloak.

This script will use your current setting of MLFLOW_TRACKING_URI to look for the keycloak redirect from it's OAuth2-proxy. From there it will start an OAuth device flow to allow you to obtain a valid access token. You can use this to update your MLFLOW_TRACKING_TOKEN by executing the command as

% export $(mlflow-token)

and following the prompt.

Usage In Jupyter Notebook

If you want to authenticate to an MLFlow instance from within a Jupyter notebook you can add the following lines to a cell:

import mlflow_token
mlflow_token.setup_mlflow_environment("https://mlflow-demo.software-dev.ncsa.illinois.edu/")

This will update the notebook's os.environ so you can immediately use the mlflow SDK. The token will eventually expire, so you may need to occasionally re-run the cell.

The cell will print the url for the user to visit and wait for the device flow to complete.

Metadata

Release files for mlflow-token 1.1.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-token 1.1.0
File Size Uploaded Provenance Actions
mlflow_token-1.1.0.tar.gz 3.8 kB Without provenance Details for mlflow_token-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mlflow-token 1.1.0
File Interpreter ABI Platform Actions
mlflow_token-1.1.0-py3-none-any.whl Python 3 none any Details for mlflow_token-1.1.0-py3-none-any.whl

Total release size: 8.2 kB

Release files / mlflow_token-1.1.0.tar.gz

Download URL mlflow_token-1.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
91cf43a4baca9e3d09e9f19a7047977a50d950c34ac573c13a6ff9cdd13f7637
BLAKE2b-256 checksum
How to use checksums
b55f909958e3485586768a395c92906d9e70ba4c9db82393a949a859eba03343
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.8 Darwin/21.6.0

Release files / mlflow_token-1.1.0-py3-none-any.whl

Download URL mlflow_token-1.1.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
537fadfd04476d541bb4b9672f7ee4971c5260d2b261be1dfe93290dd7450c65
BLAKE2b-256 checksum
How to use checksums
971331217736b07dcabf7f2098623eff5f5048588d4c5a63d5736b36923dc53e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.8 Darwin/21.6.0

Security for mlflow-token 1.1.0

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.

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