logrun
A package for experiment logging in Python.
Features include:
- Stores relevant source code (only what is necessary) with the experiments automatically;
- Easily fetch the experiments that generated a given file;
- Easily fetch the experiments that were generated by a given script;
- Shouldn't use tons of storage;
- Everything runs locally -- no possibly-sketchy third-party will be getting access to your code and experiments.
Install
logrun can be installed via pip:
pip install logrun
Example usage
The following example trains a model and registers an experiment that outputted the file trained_model.pth:
from logrun.utils.general import outpath
import pickle
... # your experiment, yada yada yada
model = ...
... # your experiment, yada yada yada
with open(outpath("trained_model.pickle"), 'wb') as file:
pickle.dump(model, file)
Note that you only needed to import the module and use the outpath function here. Everything else is neatly encapsulated in the logrun.internals module.
Documentation
The documentation is available at https://dccsillag.github.io/logrun/logrun/.
To generate it manually, use pdoc3:
pdoc --html logrun -o docs
Metadata
Release files for logrun 0.2.1
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 |
|---|---|---|---|---|
| logrun-0.2.1.tar.gz | 8.6 kB | Without provenance | Details for logrun-0.2.1.tar.gz |
Release files / logrun-0.2.1.tar.gz
| Download URL | logrun-0.2.1.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38b3ca86514d797998c838cfb863af7e7fcdef5d36f1972c99624551ac39f7f2
|
|
BLAKE2b-256 checksum How to use checksums |
53a82dd7c71cea427d49ee795373d3e0da75e38996c09861525638322a0b161b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.3
|
Security for logrun 0.2.1
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.