Metadata-Version: 2.1
Name: cs.env
Version: 20190103
Summary: Some environment related functions.
Home-page: https://bitbucket.org/cameron_simpson/css/commits/all
Author: Cameron Simpson
Author-email: cs@cskk.id.au
License: UNKNOWN
Description: Some environment related functions.
        
        * LOGDIR, VARRUN, FLAGDIR: lambdas defining standard places used in other modules
        
        * envsub: replace substrings of the form '$var' with the value of 'var' from `environ`.
        
        * getenv: fetch environment value, optionally performing substitution
        
        ## Function `envsub(s, environ=None, default=None)`
        
        Replace substrings of the form '$var' with the value of 'var' from environ.
        
        Parameters:
        * `environ`: environment mapping, default `os.environ`.
        * `default`: value to substitute for unknown vars;
                if `default` is `None` a `ValueError` is raised.
        
        ## Function `getenv(var, default=None, environ=None, dosub=False)`
        
        Fetch environment value.
        
        Parameters:
        * `var`: name of variable to fetch.
        * `default`: default value if not present. If not specified or None,
            raise KeyError.
        * `environ`: environment mapping, default `os.environ`.
        * `dosub`: if true, use envsub() to perform environment variable
            substitution on `default` if it used. Default value is `False`.
Keywords: python2,python3
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Description-Content-Type: text/markdown
