Skip to main content

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

MIT License

Project details


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.1.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torin-0.1.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file torin-0.1.0.tar.gz.

File metadata

  • Download URL: torin-0.1.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.8

File hashes

Hashes for torin-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5930c6b04f03206a5d5315d88706f6181d4b19a1648dd40dcb94126604920f0f
MD5 80072dc6d504cfe7f20cfaaa58988e01
BLAKE2b-256 1c6785f70c806df84b709deb5232f3f283175bb53ad05c8d46f7b9504f07064a

See more details on using hashes here.

File details

Details for the file torin-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: torin-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.8

File hashes

Hashes for torin-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f12790cbd9fa87ce89f67e28daefdd178141aa12cbe8034f5345c7703260992d
MD5 ecf78e1f9a2e4e23f320f6f14b09604e
BLAKE2b-256 2ae73bfae89bd5c4a38abc9c3672bf6171a431af0b354ead5d36b822ca5bdfb1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page