Skip to main content

hya

CI Nightly Tests Nightly Package Tests Codecov
Documentation Documentation
Code style: black Doc style: google Ruff Doc style: google
PYPI version Python BSD-3-Clause
Downloads Monthly downloads

Overview

hya is a library of custom OmegaConf resolvers. hya is designed to be used with Hydra. The resolvers can be easily registered in your python project by adding the following lines:

>>> from hya import get_default_registry
>>> registry = get_default_registry()
>>> @registry.register("multiply")
... def multiply_resolver(x, y):
...     return x * y
...
>>> registry.register_resolvers()

Installation

We highly recommend installing a virtual environment. hya can be installed from pip using the following command:

pip install hya

To make the package as slim as possible, only the minimal packages required to use hya are installed. To include all the packages, you can use the following command:

pip install hya[all]

Please check the get started page to see how to install only some specific packages or other alternatives to install the library. The following is the corresponding hya versions and tested dependencies.

hya omegaconf braceexpand* numpy* torch* python
main >=2.2,<3.0 >=0.1.7,<0.2.0 >=1.24,<3.0 >=2.0,<3.0 >=3.10
0.4.0 >=2.2,<3.0 >=0.1.7,<0.2.0 >=1.24,<3.0 >=2.0,<3.0 >=3.10
0.3.1 >=2.2,<3.0 >=0.1.7,<0.2.0 >=1.24,<3.0 >=2.0,<3.0 >=3.10,<3.15
0.3.0 >=2.2,<3.0 >=0.1.7,<0.2.0 >=1.24,<3.0 >=2.0,<3.0 >=3.9,<3.14
0.2.4 >=2.2,<3.0 >=0.1.7,<0.2.0 >=1.21,<3.0 >=1.11,<3.0 >=3.9,<3.14
0.2.3 >=2.1,<3.0 >=0.1.7,<0.2.0 >=1.21,<2.0 >=1.10,<3.0 >=3.9,<3.13
0.2.2 >=2.1,<3.0 >=0.1.7,<0.2.0 >=1.21,<2.0 >=1.10,<3.0 >=3.9,<3.13
0.2.1 >=2.1,<3.0 >=0.1.7,<0.2.0 >=1.21,<2.0 >=1.10,<3.0 >=3.9,<3.13
0.2.0 >=2.1,<3.0 >=0.1.7,<0.2.0 >=1.21,<2.0 >=1.10,<3.0 >=3.9,<3.13

* indicates an optional dependency

older versions
hya omegaconf braceexpand* torch* python
0.1.3 >=2.1,<3.0 >=0.1.7,<0.2.0 >=1.10,<2.2 >=3.9,<3.13
0.1.2 >=2.1,<3.0 >=0.1.7,<0.2.0 >=1.10,<2.2 >=3.9,<3.13
0.1.1 >=2.1,<3.0 >=0.1.7,<0.2.0 >=1.10,<2.2 >=3.9,<3.12
0.1.0 >=2.1,<3.0 >=0.1.7,<0.2.0 >=1.10,<2.2 >=3.9,<3.12
0.0.14 >=2.1,<3.0 >=0.1.7,<0.2.0 >=1.10,<2.2 >=3.9,<3.12
0.0.13 >=2.1,<3.0 >=1.10,<2.1 >=3.9,<3.12
0.0.12 >=2.1,<3.0 >=1.10,<2.1 >=3.9,<3.12

Contributing

Please check the instructions in CONTRIBUTING.md.

API stability

:warning: While hya is in development stage, no API is guaranteed to be stable from one release to the next. In fact, it is very likely that the API will change multiple times before a stable 1.0.0 release. In practice, this means that upgrading hya to a new version will possibly break any code that was using the old version of hya.

License

hya is licensed under BSD 3-Clause "New" or "Revised" license available in LICENSE file.

Metadata

Release files for hya 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hya 0.4.0
File Size Uploaded
hya-0.4.0.tar.gz 14.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hya 0.4.0
File Interpreter ABI Platform
hya-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.6 kB

Release files / hya-0.4.0.tar.gz

Download URL hya-0.4.0.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b9fbf2807d9b401660a5bd17f2fd0bd37cff5ce6ca92dee680fe246f3ffdd844
BLAKE2b-256 checksum
How to use checksums
c0c26b7a76ce9d4ce6dddf945083fcf5770bf3ab92ff0b5c2fc40b41bd9baec9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / hya-0.4.0-py3-none-any.whl

Download URL hya-0.4.0-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20a08a7e77a2d3df6f387a3f1e79b6641ebeb621e67f9f016c29af704d3292d5
BLAKE2b-256 checksum
How to use checksums
60434679a416f434f3864d62c50fd5baf0be8230584cf9a30e557771886e3666
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page