Skip to main content

This library provides a means to read yaml configuration files and propagate default values in reasonable ways. Nothing complicated.

Project description

This library provides a means to read yaml configuration files and propagate default values in reasonable ways. Nothing complicated.

  • Installation: pip install yamlconfig

Example:
>>> import yamlconf
>>>
>>> doc = yamlconf.loads("""
... test: demo_test
...
... tests:
...     defaults:
...         foo: 5
...     demo_test:
...         bar: 6
... """)
>>>
>>> doc['tests'][doc['test']]['foo']
5
>>> doc['tests'][doc['test']]['bar']
6
Functions:

  • load(file-like) : Returns a dict with defaults propagated

  • loads(string) : Returns a dict with defaults propagated

  • load_module(class-path) : Imports and returns

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

yamlconf-0.2.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distributions

yamlconf-0.2.2-py3.5.egg (15.3 kB view details)

Uploaded Source

yamlconf-0.2.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file yamlconf-0.2.2.tar.gz.

File metadata

  • Download URL: yamlconf-0.2.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for yamlconf-0.2.2.tar.gz
Algorithm Hash digest
SHA256 abeccbb87c7a4aab472fb422009bb9d1e10261c4e8e39a69b0d92ef1d00b8a65
MD5 57d99676b01bd09c49f0f7afb367a659
BLAKE2b-256 145a6787928db02c8cf19ed4c34d3d377694e3014bb7fa70ab18ebd00f5c6d78

See more details on using hashes here.

File details

Details for the file yamlconf-0.2.2-py3.5.egg.

File metadata

  • Download URL: yamlconf-0.2.2-py3.5.egg
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.15.0 CPython/3.8.10

File hashes

Hashes for yamlconf-0.2.2-py3.5.egg
Algorithm Hash digest
SHA256 a13b79ae31f7b94a5639b363a24693632ca7a9cdecba67f51be46d6f5e115d78
MD5 a6e1c5db21d565d2a6e94d02e73d7e65
BLAKE2b-256 f5b709192f28a25a59c7c550e972c88ad5e59a7309cfbeb549603e5d06091638

See more details on using hashes here.

File details

Details for the file yamlconf-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for yamlconf-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7f94e4a45287246af8c1309dd1c761fbdd96e09523a0fbdaf981a025cfc9f37f
MD5 1e7d46c51cc243bff60f34def079b907
BLAKE2b-256 5699362b3f4d3d3bd70699e73aa7ed6beb535eefce1b5c3df89f9e6c21c69c1f

See more details on using hashes here.

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