Skip to main content

A collection of usefull hydra callbacks for hydra configuration

Project description

Hydra Callbacks

style framework

A collection of usefulls callbacks for the https://hydra.cc/ configuration framework.

Installation

pip install git+https://github.com/paquiteau/hydra-callbacks

Usage

In your hydra root config file add the following:

hydra: 
  # ... 
  callbacks: 
    git_info:
      _target_: hydra_callbacks.GitInfo 
      clean: true
    latest_link:
      _target_: hydra_callbacks.LatestRunLink

Available Callbacks

Name Action Author
GitInfo Check status of Repository paquiteau
LatestRunLink Get a link to the latest run paquiteau
MultiRunGatherer Gather results json file in a single table paquiteau
RuntimePerformance Get Execution time for each run paquiteau

And more to come !

Also Available

  • PerfLogger : A simple to use performance logger
  
from hydra_callbacks import PerfLogger 
import logging

log = logging.getLogger(__name__)
def main_app(cfg):
    with PerfLogger(log, "step1"):
        sleep(1)

    with PerfLogger(log, "step2"):
        sleep(2)
    log.info(PerfLogger.recap())

You too, have cool Callbacks, or idea for one ?

Open a PR or an issue !

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

hydra-callbacks-0.1.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

hydra_callbacks-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file hydra-callbacks-0.1.0.tar.gz.

File metadata

  • Download URL: hydra-callbacks-0.1.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for hydra-callbacks-0.1.0.tar.gz
Algorithm Hash digest
SHA256 21b82f5748698159d0ed58ac0acb603abb1e519b1ae4a9944bd42f0347a975b6
MD5 3a5693286db65c382886c62b1502791d
BLAKE2b-256 bb3bcdbf0627177369ef4b22c2722f131379d7735626f2750bee6ca1bf1aadd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hydra_callbacks-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e60dd050f3517cb09fb7d52a4bd90337ce2a2f97913b5067cb1831fe8d3c2aea
MD5 5931d703fe37942f5c6de9c06914a3e5
BLAKE2b-256 f11578beda5a7109944c47030ae8ae99aeee153d55c3438477e05f87d30c494e

See more details on using hashes here.

Supported by

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