yaml-helper

Helper methods to read and write YAML files.


License
GPL-3.0
Install
pip install yaml-helper==0.1.0

Documentation

YAML Helper

Helper methods to read and write YAML files.

Installation

pip install yaml-helper

Usage

from yaml_helper import YAML


yaml = YAML('config.yml')
config = yaml.load()

print(config['ip_address'])
print(config['port'])

yaml.add({'driver': 'mysqli'})
yaml.add({'username': 'admin'})
yaml.write()