Metadata-Version: 1.0
Name: etcDefaultParser
Version: 1.0.0
Summary: A parser for /etc/default configuration files
Home-page: http://packages.python.org/etcDefaultParser
Author: Sven Ludwig
Author-email: pypi@abraumhal.de
License: GPL
Description: etcDefault
        ==========
        
        A parser for /etc/default configuration files which parses these files with a
        bash subshell in order to have 100% of the bash features when including this
        configuration into an python driven init script.
        
        Example:
        
        root@host # cat /etc/default/rcS
        #
        # /etc/default/rcS
        #
        # Default settings for the scripts in /etc/rcS.d/
        #
        # For information about these variables see the rcS(5) manual page.
        #
        # This file belongs to the "initscripts" package.
        
        TMPTIME=0
        SULOGIN=no
        DELAYLOGIN=no
        UTC=yes
        VERBOSE=no
        FSCKFIX=no
        RAMRUN=no
        RAMLOCK=no
        root@host # python
        Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
        [GCC 4.4.5] on linux2
        Type "help", "copyright", "credits" or "license" for more information.
        >>> import etcDefault
        >>> etcDefault.read('/etc/default/rcS')
        {
          'UTC': 'yes',
          'RAMLOCK': 'no',
          'SULOGIN': 'no',
          'VERBOSE': 'no',
          'TMPTIME': '0',
          'RAMRUN': 'no',
          'FSCKFIX': 'no',
          'DELAYLOGIN': 'no',
          'PIPESTATUS': ['0']
        }
        >>>
        
        You get all variables set during the run of the /etc/default script into a dict.
        
Keywords: initscript default debian
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Basic
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: System :: Boot :: Init
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: System Administrators
Classifier: Natural Language :: German
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
