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
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
yaml-helper-0.1.0.tar.gz
(14.3 kB
view details)
Built Distribution
File details
Details for the file yaml-helper-0.1.0.tar.gz
.
File metadata
- Download URL: yaml-helper-0.1.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 325a8d4b1f2e0c893953fdc955db922377273bd7aaf9481c47d57829a32f2c15 |
|
MD5 | 729ce6ed9308bf320f6b2fb53f6f4942 |
|
BLAKE2b-256 | 3303e82e191da981b8071e6f5c686277c2050fa1e5134945a14bfc4462ecdc32 |
File details
Details for the file yaml_helper-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: yaml_helper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6833504ad1c549a0b2c287e1b0093abf0c544cd40cc1428fd8fc642f3b8c5a35 |
|
MD5 | 7c9ca4d41c9b480781be9a37c38a1931 |
|
BLAKE2b-256 | 5b8dbfd3268c6771b4d261722aa0733e47c8ffe3022168da437c3ec86e8dd6b4 |