Skip to main content

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


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)

Uploaded Source

Built Distribution

hparm-0.0.1-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

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