mllogs
Lightweight experiment tracking and model registry for machine learning.
Installation
pip install mllogs
Usage
Track a run:
from mllogs import MLLogs
mll = MLLogs()
mll.start_run()
mll.log_param("learning_rate", 0.01)
mll.log_metric("accuracy", 0.92)
mll.set_tag("model", "logistic_regression")
mll.save_artifact("model", model, "joblib")
run = mll.complete_run()
Query run data:
mll.query.get_run(run.id)
mll.query.get_params(run.id)
mll.query.get_metrics(run.id)
mll.query.get_tags(run.id)
Load saved artifacts:
mll.query.list_artifacts(run.id)
model = mll.query.load_artifact(run.id, "model")
Register and version persisted model artifacts:
model_ref = mll.save_artifact("model", model, "joblib")
mll.registry.create_version("credit-risk", model_ref)
latest = mll.registry.get_latest_version("credit-risk")
create_version automatically registers the model if it does not alreadt exist.
You can also register a model explicitly:
mll.registry.register_model("credit-risk")
And load a specific model version:
python
version = mll.registry.get_version(
model_name="credit-risk",
version=1,
)
Model version reference persisted artifacts, while artifact storage and model registration remain separate parts of the ML lifecycle.
Features
- Start, complete, and fail experiment runs
- Log parameters, metrics, and tags
- Persist run data to a local SQLite database
- Persist artifacts to local file storage
- Query saved runs and their logged data
- Register models and create versioned references to persisted model artifacts
Development
Install from source with development dependencies:
pip install -e ".[dev]"
Run the test suite:
pytest
License
MIT
Metadata
Release files for mllogs 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mllogs-0.7.0.tar.gz | 11.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mllogs-0.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.9 kB
Release files / mllogs-0.7.0.tar.gz
| Download URL | mllogs-0.7.0.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
198d3a87fe6faeb2193a634772ae7f468caf8b2d0c907c20480f07537e12d4fa
|
|
BLAKE2b-256 checksum How to use checksums |
6438d86a3daada72a661048e6c2b99e414ad99d1e44af2c3a92eb4e72044b10c
|
| 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 Oct 1, 2026.
Transparency logRelease files / mllogs-0.7.0-py3-none-any.whl
| Download URL | mllogs-0.7.0-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3bd6e3c854a249932dcff781ceeb9eba9359e70d0124e56de45dd667b3569574
|
|
BLAKE2b-256 checksum How to use checksums |
71ba1a1d52b729cb9d1a177a3e9a648404bdf543030a5f2c63e1a9035438d68f
|
| 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 Oct 1, 2026.
Transparency log