Skip to main content

Helper methods to read and write YAML files.

Project description

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()

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

yaml-helper-0.1.0.tar.gz (14.3 kB view hashes)

Uploaded Source

Built Distribution

yaml_helper-0.1.0-py3-none-any.whl (14.6 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