Metadata-Version: 1.1
Name: configs
Version: 1.9.5
Summary: Configuration for humans
Home-page: https://bitbucket.org/moigagoo/configs
Author: Konstantin Molchanov
Author-email: moigagoo@myopera.com
License: MIT
Description: *********************************
        Configs: Configuration for Humans
        *********************************
        
        Parsing INI configs must be easy, as are the INI files.
        
        **Configs** provides a simple API for getting data from INI config files.
        
        Loading data from a config is as easy as ``configs.load('my.conf')``.
        
        ``Configs`` work with both Python 2 and 3.
        
        The repo is at `bitbucket.org/moigagoo/configs <https://bitbucket.org/moigagoo/configs>`_.
        
        Features
        ========
        
        *   Root-level params support
        *   Numeric values are converted automatically
        *   Sections with only key-value items are parsed as dicts
        *   Sections with only flag items (keys with no value) are parsed as lists
        *   Mixed content sections are parsed as tuples of a dict and a list, which can be accessed individually
        *   Sections are iterable (even the mixed ones; list first, dict second)
        *   Comments support
        
        Installation
        ============
        
        Install configs with pip:
        
        .. code-block:: bash
        
            $ pip install configs
        
        Basic usage
        ===========
        Load a config file::
        
            >>> import configs
            >>> c = configs.load('sample.conf')
            >>> c['general']
            {'foo': 'baz'}
        
        Load a config file with a fallback config file (with default values)::
        
            >>> fc = configs.load('sample.conf', fallback_file='default.conf')
            >>> fc['general']['spam']
            eggs
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
