A lightweight logging and tracking utility
Project description
Torin
A lightweight Python package for logging and tracking metrics.
Installation
pip install torin
Usage
import torin
# Initialize a run
run = torin.init(project="my-project", name="experiment-1")
# Log metrics
torin.log({"accuracy": 0.95, "loss": 0.05})
# Finish the run
torin.finish()
API Reference
torin.init()
Initializes a run and connects to the backend service.
run = torin.init(
project="my-project",
entity="my-team",
name="experiment-1",
config_dict={"learning_rate": 0.01}
)
torin.log()
Logs metrics or other data to the current run.
torin.log(
{"accuracy": 0.95, "loss": 0.05},
step=10,
commit=True
)
torin.finish()
Flushes all pending logs and finishes the run.
torin.finish(exit_code=0)
torin.flush()
Explicitly flushes pending logs.
torin.flush(timeout=30)
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
torin-0.0.1.tar.gz
(13.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
torin-0.0.1-py3-none-any.whl
(12.6 kB
view details)
File details
Details for the file torin-0.0.1.tar.gz.
File metadata
- Download URL: torin-0.0.1.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d259fdd68668cd5d79b913913898f74f34b5553e1eb25f20976cd68a4489607
|
|
| MD5 |
8cff4cbf450bbf3011297b6afa5159f8
|
|
| BLAKE2b-256 |
63b2162a1cd146502777666a7ab695ad36b41244450c188fbe051895e7f33897
|
File details
Details for the file torin-0.0.1-py3-none-any.whl.
File metadata
- Download URL: torin-0.0.1-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87ffbf634ebf7070205a397c702289594bc1edd50c7e4f3d524b874c6fc37844
|
|
| MD5 |
a0614cf4798a2065eebf12ae2d24a5b6
|
|
| BLAKE2b-256 |
66da9fe01257d7354e079d01f49947dd2b171fc640c54fbaab244e031903c91c
|