Loads yaml file to a python structure
Project description
HParm
HParm is a simple module build to load yaml files in both dot notation as well as dictionary access notation.
Install hparm
pip install git+https://github.com/knoriy/hparm.git
Examples
Example yaml file and use case
paths:
first_file: 'path/to/first_file.yaml'
second_file: 'path/to/second_file.yaml'
variable:
epochs:100
batch: 16
from hparm import HParm
hp = hparm('dir/to/file.yaml')
# dictionary notation
hp['variable']['epochs]
# dot notation
hp.varaibles.epochs
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
hparm-0.0.2.tar.gz
(6.3 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
hparm-0.0.2-py3-none-any.whl
(6.5 kB
view details)
File details
Details for the file hparm-0.0.2.tar.gz.
File metadata
- Download URL: hparm-0.0.2.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb2e28a9e84daa86ed733b1d76eb336e402ce74af8333d2b65965606d6074d7d
|
|
| MD5 |
862eb7f7c83fc07fc4e734b681d798dc
|
|
| BLAKE2b-256 |
44bb07729642a591c5c94211d34fc51f001305cda01de82e98057f4143b858f0
|
File details
Details for the file hparm-0.0.2-py3-none-any.whl.
File metadata
- Download URL: hparm-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84a2e8f72f25fbe622c6ddf9bc744e86980035d033389ffcc20fda4c7a3f2174
|
|
| MD5 |
9fe7dce364e9ac4c7e430b788371285e
|
|
| BLAKE2b-256 |
4c270a0100a32f68142a46c8cac741297df12b7301d6265e11538815c5c0c13f
|