Skip to main content

mllogs

Lightweight experiment tracking and model persistence for machine learning.

mllogs helps developers track experiments, compare training runs, and save trained models without running a tracking server or external service.

Built with SQLite, SQLAlchemy Core, and pandas.

Installation

Requires Python 3.11 or later.

pip install mllogs

Quickstart

from mllogs import MLLogs

mll = MLLogs()

mll.create_experiment("ridge-regression")

with mll.run("ridge-regression") as run_id:
    model.fit(X_train, y_train)

    mll.log_param("alpha", 0.1)
    mll.log_metric("rmse", 0.42)
    mll.save_model(model)

# Compare runs
df = mll.runs("ridge-regression").to_df()

# Load a saved model
model = mll.load_model(run_id)

mll.close()

Features

  • Experiment tracking — Organize training runs and log parameters, metrics, and tags.
  • Flexible querying — Filter, sort, and compare runs using pandas DataFrames.
  • Model persistence — Save and load trained models using Joblib or Pickle.
  • Local-first storage — Store experiment metadata in SQLite and models on the local filesystem.

Configuration

By default, mllogs stores its database and models in .mllogs/.

.mllogs/
├── mllogs.db
└── models/
    └── <run_id>.joblib

Custom storage locations can be specified:

mll = MLLogs(
    db_url="sqlite:///data/mllogs.db",
    file_url="data/models",
)

License

MIT License.

Metadata

Release files for mllogs 0.11.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 mllogs 0.11.0
File Size Uploaded Provenance Actions
mllogs-0.11.0.tar.gz 9.5 kB With provenance Details for mllogs-0.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mllogs 0.11.0
File Interpreter ABI Platform Actions
mllogs-0.11.0-py3-none-any.whl Python 3 none any Details for mllogs-0.11.0-py3-none-any.whl

Total release size: 20.1 kB

Release files / mllogs-0.11.0.tar.gz

Download URL mllogs-0.11.0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3440243631a4eb9f8be71c1ebd85fcdf7668a8276fc136c9b4ae9e7cc077bcee
BLAKE2b-256 checksum
How to use checksums
cadeac3ea6cddc287dcc6754fb1e6f0e21bf0e8a927a2e22811192042ee9c924
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 16, 2026.

Transparency log

Release files / mllogs-0.11.0-py3-none-any.whl

Download URL mllogs-0.11.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e6fcdb2f459218da57516ea1dc30e104754c03b2ec64311d251a3315c0f007a
BLAKE2b-256 checksum
How to use checksums
f79b1f5c4aacad9d7524a66a0805eee6d1d4c16d951cde1393ce6b3985721177
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 16, 2026.

Transparency log

Security for mllogs 0.11.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mllogs-0.11.0.tar.gz

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 16, 2026.

Transparency log

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