Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yamlconf-0.2.7-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yamlconf-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for yamlconf-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b9075edfe35dceb83a262d8823dc32abdb35284ad1f9b169b6939d188e31dc3c
MD5 c41e97fe54ac799fba9c8efdb8f3a59d
BLAKE2b-256 5935edaa32ae3ccb5d0e65c171c70451b16da9031d055363b9c5c90a29d76033

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page