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.1.tar.gz
(6.3 kB
view hashes)
Built Distribution
hparm-0.0.1-py3-none-any.whl
(6.5 kB
view hashes)