beetbox / confuse

painless YAML config files for Python
https://pypi.org/project/confuse/
MIT License
413 stars 51 forks source link
configuration python yaml

Confuse: painless YAML config files

.. image:: https://github.com/beetbox/confuse/workflows/Build/badge.svg?branch=master :target: https://github.com/beetbox/confuse/actions

.. image:: http://img.shields.io/pypi/v/confuse.svg :target: https://pypi.python.org/pypi/confuse

Confuse is a configuration library for Python that uses YAML_. It takes care of defaults, overrides, type checking, command-line integration, environment variable support, human-readable errors, and standard OS-specific locations.

What It Does

Here’s what Confuse brings to the table:

Installation

Confuse is available on PyPI <https://pypi.org/project/confuse/>_ and can be installed using :code:pip:

.. code-block:: sh

pip install confuse

Using Confuse

Confuse's documentation_ describes its API in detail.

Credits

Confuse was made to power beets. Like beets, it is available under the MIT license.

.. _ConfigParser: http://docs.python.org/library/configparser.html .. _YAML: http://yaml.org/ .. _optparse: http://docs.python.org/dev/library/optparse.html .. _argparse: http://docs.python.org/dev/library/argparse.html .. _logging: http://docs.python.org/library/logging.html .. _Confuse's documentation: http://confuse.readthedocs.org/en/latest/usage.html .. _MIT license: http://www.opensource.org/licenses/mit-license.php .. _beets: https://github.com/beetbox/beets