hydra-zen


Namehydra-zen JSON
Version 0.12.1 PyPI version JSON
download
home_page
SummaryConfigurable, reproducible, and scalable workflows in Python, via Hydra
upload_time2024-01-21 17:55:38
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT
keywords machine learning research configuration scalable reproducible yaml hydra dataclass
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # hydra-zen
![image](brand/Hydra-Zen_logo_full_filled_bkgrnd_small.png)


<p align="center">
  <a href="https://pypi.python.org/pypi/hydra-zen">
    <img src="https://img.shields.io/pypi/v/hydra-zen.svg" alt="PyPI" />
  </a>
  <a>
    <img src="https://img.shields.io/badge/python-3.8%20&#8208;%203.12-blue.svg" alt="Python version support" />
  </a>
  <a href="https://github.com/mit-ll-responsible-ai/hydra-zen/actions?query=workflow%3ATests+branch%3Amain">
    <img src="https://github.com/mit-ll-responsible-ai/hydra-zen/workflows/Tests/badge.svg" alt="GitHub Actions" />
  <a href="https://github.com/mit-ll-responsible-ai/hydra-zen/actions?query=workflow%3ATests+branch%3Amain">
    <img src="https://img.shields.io/badge/coverage-100%25-green.svg" alt="Code Coverage" />
  <a href="https://github.com/microsoft/pyright/blob/92b4028cd5fd483efcf3f1cdb8597b2d4edd8866/docs/typed-libraries.md#verifying-type-completeness">
    <img src="https://img.shields.io/badge/type%20completeness-100%25-green.svg" alt="Type-Completeness Score" />
  <a href="https://hypothesis.readthedocs.io/">
    <img src="https://img.shields.io/badge/hypothesis-tested-brightgreen.svg" alt="Tested with Hypothesis" />
  </a>
  <a href="https://zenodo.org/badge/latestdoi/354130346">
    <img src="https://zenodo.org/badge/354130346.svg" alt="Cite Us" />
  </a>
  <p align="center">
    A library that facilitates configurable, reproducible, and scalable workflows, using Hydra.
  </p>
  <p align="center">
    Check out our <a href="https://mit-ll-responsible-ai.github.io/hydra-zen/">documentation</a> for more information.
  </p>
  <p align="center">
    Interested in machine learning? Check out our guide <a href="https://mit-ll-responsible-ai.github.io/hydra-zen/tutorials/pytorch_lightning.html">for using PyTorch Lightning with hydra-zen.⚡</a>
  </p>
</p>


hydra-zen is a Python library that simplifies the process of writing code (research-grade or production-grade) that is:

- **Configurable**: you can configure all aspects of your code from a single interface (the command line or a single Python function).
- **Repeatable**: each run of your code will be self-documenting; the full configuration of your software is saved alongside your results.
- **Scalable**: launch multiple runs of your software, be it on your local machine or across multiple nodes on a cluster.


**hydra-zen eliminates all hand-written yaml configs from your Hydra project**. It does so by providing functions that [dynamically and automatically](https://mit-ll-responsible-ai.github.io/hydra-zen/api_reference.html#creating-and-working-with-configs) generate dataclass-based configs for your code. It also provides a [custom config-store API](https://mit-ll-responsible-ai.github.io/hydra-zen/api_reference.html#storing-configs) and [task-function wrapper](https://mit-ll-responsible-ai.github.io/hydra-zen/generated/hydra_zen.zen.html#hydra_zen.zen), which help to eliminate most of the Hydra-specific boilerplate from your project.

Learn about hydra-zen [**at a glance**](https://mit-ll-responsible-ai.github.io/hydra-zen/index.html#hydra-zen-at-a-glance).
  
## Installation
`hydra-zen` is lightweight: its only dependencies are `hydra-core` and `typing-extensions`.

```console
pip install hydra-zen
```

## Contributing

Before opening a PR to this repo, consider posting an [issue](https://github.com/mit-ll-responsible-ai/hydra-zen/issues) or a [discussion topic](https://github.com/mit-ll-responsible-ai/hydra-zen/discussions) to share your ideas with us. We will work with you to ensure your feature is well-scoped and that your hard work goes to good use.

(See an obvious bug or typo? Go ahead and just open a PR :) )

For further details refer to [these docs](https://github.com/mit-ll-responsible-ai/hydra-zen/blob/main/CONTRIBUTING.md).


## Join the Discussion

Share ideas, ask questions, and chat with us over at [hydra-zen's discussion board](https://github.com/mit-ll-responsible-ai/hydra-zen/discussions).


## Citation

Using `hydra-zen` for your research? Please cite the following publication:

```
@article{soklaski2022tools,
  title={Tools and Practices for Responsible AI Engineering},
  author={Soklaski, Ryan and Goodwin, Justin and Brown, Olivia and Yee, Michael and Matterer, Jason},
  journal={arXiv preprint arXiv:2201.05647},
  year={2022}
}
```

## Disclaimer

DISTRIBUTION STATEMENT A. Approved for public release: distribution unlimited.

© 2024 MASSACHUSETTS INSTITUTE OF TECHNOLOGY
    
    Subject to FAR 52.227-11 – Patent Rights – Ownership by the Contractor (May 2014)
    SPDX-License-Identifier: MIT
    
This material is based upon work supported by the Under Secretary of Defense for Research and Engineering under Air Force Contract No. FA8702-15-D-0001. Any opinions, findings, conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the Under Secretary of Defense for Research and Engineering.

A portion of this research was sponsored by the United States Air Force Research Laboratory and the United States Air Force Artificial Intelligence Accelerator and was accomplished under Cooperative Agreement Number FA8750-19-2-1000. The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the United States Air Force or the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation herein.

The software/firmware is provided to you on an As-Is basis

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "hydra-zen",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Justin Goodwin <jgoodwin@ll.mit.edu>",
    "keywords": "machine learning,research,configuration,scalable,reproducible,yaml,Hydra,dataclass",
    "author": "",
    "author_email": "Ryan Soklaski <rsoklaski@gmail.com>, Justin Goodwin <jgoodwin@ll.mit.edu>",
    "download_url": "https://files.pythonhosted.org/packages/22/ea/aed9e79135ce9d797d44b8f9ec1cfb62039cf306bb229f1fb5715d176c90/hydra_zen-0.12.1.tar.gz",
    "platform": null,
    "description": "# hydra-zen\n![image](brand/Hydra-Zen_logo_full_filled_bkgrnd_small.png)\n\n\n<p align=\"center\">\n  <a href=\"https://pypi.python.org/pypi/hydra-zen\">\n    <img src=\"https://img.shields.io/pypi/v/hydra-zen.svg\" alt=\"PyPI\" />\n  </a>\n  <a>\n    <img src=\"https://img.shields.io/badge/python-3.8%20&#8208;%203.12-blue.svg\" alt=\"Python version support\" />\n  </a>\n  <a href=\"https://github.com/mit-ll-responsible-ai/hydra-zen/actions?query=workflow%3ATests+branch%3Amain\">\n    <img src=\"https://github.com/mit-ll-responsible-ai/hydra-zen/workflows/Tests/badge.svg\" alt=\"GitHub Actions\" />\n  <a href=\"https://github.com/mit-ll-responsible-ai/hydra-zen/actions?query=workflow%3ATests+branch%3Amain\">\n    <img src=\"https://img.shields.io/badge/coverage-100%25-green.svg\" alt=\"Code Coverage\" />\n  <a href=\"https://github.com/microsoft/pyright/blob/92b4028cd5fd483efcf3f1cdb8597b2d4edd8866/docs/typed-libraries.md#verifying-type-completeness\">\n    <img src=\"https://img.shields.io/badge/type%20completeness-100%25-green.svg\" alt=\"Type-Completeness Score\" />\n  <a href=\"https://hypothesis.readthedocs.io/\">\n    <img src=\"https://img.shields.io/badge/hypothesis-tested-brightgreen.svg\" alt=\"Tested with Hypothesis\" />\n  </a>\n  <a href=\"https://zenodo.org/badge/latestdoi/354130346\">\n    <img src=\"https://zenodo.org/badge/354130346.svg\" alt=\"Cite Us\" />\n  </a>\n  <p align=\"center\">\n    A library that facilitates configurable, reproducible, and scalable workflows, using Hydra.\n  </p>\n  <p align=\"center\">\n    Check out our <a href=\"https://mit-ll-responsible-ai.github.io/hydra-zen/\">documentation</a> for more information.\n  </p>\n  <p align=\"center\">\n    Interested in machine learning? Check out our guide <a href=\"https://mit-ll-responsible-ai.github.io/hydra-zen/tutorials/pytorch_lightning.html\">for using PyTorch Lightning with hydra-zen.\u26a1</a>\n  </p>\n</p>\n\n\nhydra-zen is a Python library that simplifies the process of writing code (research-grade or production-grade) that is:\n\n- **Configurable**: you can configure all aspects of your code from a single interface (the command line or a single Python function).\n- **Repeatable**: each run of your code will be self-documenting; the full configuration of your software is saved alongside your results.\n- **Scalable**: launch multiple runs of your software, be it on your local machine or across multiple nodes on a cluster.\n\n\n**hydra-zen eliminates all hand-written yaml configs from your Hydra project**. It does so by providing functions that [dynamically and automatically](https://mit-ll-responsible-ai.github.io/hydra-zen/api_reference.html#creating-and-working-with-configs) generate dataclass-based configs for your code. It also provides a [custom config-store API](https://mit-ll-responsible-ai.github.io/hydra-zen/api_reference.html#storing-configs) and [task-function wrapper](https://mit-ll-responsible-ai.github.io/hydra-zen/generated/hydra_zen.zen.html#hydra_zen.zen), which help to eliminate most of the Hydra-specific boilerplate from your project.\n\nLearn about hydra-zen [**at a glance**](https://mit-ll-responsible-ai.github.io/hydra-zen/index.html#hydra-zen-at-a-glance).\n  \n## Installation\n`hydra-zen` is lightweight: its only dependencies are `hydra-core` and `typing-extensions`.\n\n```console\npip install hydra-zen\n```\n\n## Contributing\n\nBefore opening a PR to this repo, consider posting an [issue](https://github.com/mit-ll-responsible-ai/hydra-zen/issues) or a [discussion topic](https://github.com/mit-ll-responsible-ai/hydra-zen/discussions) to share your ideas with us. We will work with you to ensure your feature is well-scoped and that your hard work goes to good use.\n\n(See an obvious bug or typo? Go ahead and just open a PR :) )\n\nFor further details refer to [these docs](https://github.com/mit-ll-responsible-ai/hydra-zen/blob/main/CONTRIBUTING.md).\n\n\n## Join the Discussion\n\nShare ideas, ask questions, and chat with us over at [hydra-zen's discussion board](https://github.com/mit-ll-responsible-ai/hydra-zen/discussions).\n\n\n## Citation\n\nUsing `hydra-zen` for your research? Please cite the following publication:\n\n```\n@article{soklaski2022tools,\n  title={Tools and Practices for Responsible AI Engineering},\n  author={Soklaski, Ryan and Goodwin, Justin and Brown, Olivia and Yee, Michael and Matterer, Jason},\n  journal={arXiv preprint arXiv:2201.05647},\n  year={2022}\n}\n```\n\n## Disclaimer\n\nDISTRIBUTION STATEMENT A. Approved for public release: distribution unlimited.\n\n\u00a9 2024 MASSACHUSETTS INSTITUTE OF TECHNOLOGY\n    \n    Subject to FAR 52.227-11 \u2013 Patent Rights \u2013 Ownership by the Contractor (May 2014)\n    SPDX-License-Identifier: MIT\n    \nThis material is based upon work supported by the Under Secretary of Defense for Research and Engineering under Air Force Contract No. FA8702-15-D-0001. Any opinions, findings, conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the Under Secretary of Defense for Research and Engineering.\n\nA portion of this research was sponsored by the United States Air Force Research Laboratory and the United States Air Force Artificial Intelligence Accelerator and was accomplished under Cooperative Agreement Number FA8750-19-2-1000. The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the United States Air Force or the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation herein.\n\nThe software/firmware is provided to you on an As-Is basis\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Configurable, reproducible, and scalable workflows in Python, via Hydra",
    "version": "0.12.1",
    "project_urls": {
        "Bug Reports": "https://github.com/mit-ll-responsible-ai/hydra-zen/issues",
        "Homepage": "https://mit-ll-responsible-ai.github.io/hydra-zen/",
        "Source": "https://github.com/mit-ll-responsible-ai/hydra-zen"
    },
    "split_keywords": [
        "machine learning",
        "research",
        "configuration",
        "scalable",
        "reproducible",
        "yaml",
        "hydra",
        "dataclass"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1ba15e0c5c979e087eda58ea5cb5644e98548f5cdfc6597d86659bb51cf44113",
                "md5": "50767b49859656473970344bb07d0bd3",
                "sha256": "23ad9df648f0db1747c15cc4c90c8e46be2809099493b5d00dcc6e49979d2545"
            },
            "downloads": -1,
            "filename": "hydra_zen-0.12.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "50767b49859656473970344bb07d0bd3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 102155,
            "upload_time": "2024-01-21T17:55:36",
            "upload_time_iso_8601": "2024-01-21T17:55:36.261529Z",
            "url": "https://files.pythonhosted.org/packages/1b/a1/5e0c5c979e087eda58ea5cb5644e98548f5cdfc6597d86659bb51cf44113/hydra_zen-0.12.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "22eaaed9e79135ce9d797d44b8f9ec1cfb62039cf306bb229f1fb5715d176c90",
                "md5": "cd0d5c0196bd6a41d1308cdaaef2a818",
                "sha256": "e27979c16505a654918c8c36cc190cc61ded14054a4d84efd65c0b83e7078050"
            },
            "downloads": -1,
            "filename": "hydra_zen-0.12.1.tar.gz",
            "has_sig": false,
            "md5_digest": "cd0d5c0196bd6a41d1308cdaaef2a818",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 1324572,
            "upload_time": "2024-01-21T17:55:38",
            "upload_time_iso_8601": "2024-01-21T17:55:38.377020Z",
            "url": "https://files.pythonhosted.org/packages/22/ea/aed9e79135ce9d797d44b8f9ec1cfb62039cf306bb229f1fb5715d176c90/hydra_zen-0.12.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-21 17:55:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mit-ll-responsible-ai",
    "github_project": "hydra-zen",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "hydra-zen"
}
        
Elapsed time: 0.22609s