LearnML Python SDK 0.1.3
HTTP(S) URLs select the website API; bare host:port addresses retain direct gRPC.
from getpass import getpass
from learnml import LearnMLClient
with LearnMLClient("https://your-learnml-server.example") as client:
client.login("you@example.com", getpass("LearnML password: "))
universe = next(u for u in client.list_universes() if u["name"] == "My experiments")
uid = universe["id"]
run = client.create_training_run(uid, "my-experiment", model_name="my-model")
client.log_metrics(uid, run["id"], step=1, loss=0.42, accuracy=0.91)
client.upload_data(uid, "experiment-data", "CUSTOM", "experiment.csv")
client.end_training_run(uid, run["id"])
Install with python -m pip install --upgrade learnml-sdk, or install a local checkout with python -m pip install ./sdk. Restart a notebook kernel after upgrading an already-imported package. HTTP support requires version 0.1.3 or later.
HTTP mode preserves the existing public methods and camelCase response dictionaries. token and refresh state work in both modes. Requests have connection/read timeouts; API and network errors use the SDK exception classes. HTTP multipart uploads stream from the client file; the current gateway still buffers uploads in server memory. chunk_size controls gRPC chunks; the HTTP transport controls its own multipart read sizes. HTTP collection batching uses paginated API calls.
The existing gateway cannot accept custom checkpoint metadata; HTTP save_checkpoint(metadata=...) raises an explicit error if nonempty metadata is supplied. Empty metadata and the normal checkpoint upload/download flow are supported.
Run regression tests with python -m unittest discover -s sdk/tests from the repository root after installing the SDK.
Release files for learnml-sdk 0.1.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 | |
|---|---|---|---|
| learnml_sdk-0.1.3.tar.gz | 25.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| learnml_sdk-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.7 kB
Release files / learnml_sdk-0.1.3.tar.gz
| Download URL | learnml_sdk-0.1.3.tar.gz |
|---|---|
| Size | 25.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f571a7407ffa7020ff9b3a573ebf16e66b3e2647df59fc6910702a62ceca23ca
|
|
BLAKE2b-256 checksum How to use checksums |
634de588fcf8639e128fef7ebed3a326cbf60fd5a8d956bec9c15725877d5374
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency logRelease files / learnml_sdk-0.1.3-py3-none-any.whl
| Download URL | learnml_sdk-0.1.3-py3-none-any.whl |
|---|---|
| Size | 30.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a47a6f996c684ff7bd187bc39a8862e2c87f35bf9ad3f91dd2f333534b9d3ee3
|
|
BLAKE2b-256 checksum How to use checksums |
76d509882df064d179204458fc18f1489c3de3a0666450e74862f7baea61ab10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency log