Metadata-Version: 1.2
Name: ihih
Version: 0.2.1
Summary: Configuration parsers with lazy parameters evaluation
Home-page: https://gitlab.com/romain-dartigues/python-ihih
Author: Romain Dartigues
License: BSD 3-Clause License
Download-URL: https://gitlab.com/romain-dartigues/python-ihih
Description: ####
        ihih
        ####
        
        ihih is an attempt to provide simple configuration parsers (for Python) with a
        dictionary-like interface.
        
        It try to be flexible and let you alter the syntax by sub-classing it.
        
        More informations can be found in the docs directory or online:
        
        * https://romain-dartigues.gitlab.io/python-ihih/
        * http://python-ihih.readthedocs.org/
        
        Features
        ########
        
        "flat" configuration file format
        ================================
        
        Flat by opposition to, "nested" (like JSON, nginx, ...)
        and "section" (INI files, ...).
        
        Simple key / value system
        =========================
        
        Simple, obvious, supporting the features you are used to (ignore blank lines
        and spaces, support comments, automatic unquoting, ...).
        
        Lazy value interpolation
        ========================
        
        Example::
        
           my_banner   = $myhostname MY-PROGRAM
           my_hostname = server.example.net
        
        Dictionary-like interface
        =========================
        
        Example:
        
        .. code-block:: python
        
           >>> print conf['my_banner']
           server.example.net MY-PROGRAM
        
        Configuration precedence
        ========================
        
        In the following example, user configuration file will take precedence over
        system-wide configuration file:
        
        .. code-block:: python
        
           conf = IHIH(
              (
                 '/etc/example.conf',
                 os.path.join(os.path.expanduser('~'), '.example.conf')
              )
           )
        
        Default on the initialization
        =============================
        
        Example:
        
        .. code-block:: python
        
           conf = IHIH(
              '/etc/example.conf',
              {'lang': 'en', 'TZ': 'UTC'}
           )
        
Keywords: conf config configuration parser
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Plugins
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=2.7
