Kenneth Reitz 300a3e0d09 run the tests
2012-08-20 11:35:19 +10:00
2012-05-08 10:32:25 -04:00
2012-05-08 10:24:30 -04:00
2012-08-20 11:35:19 +10:00
2012-05-08 11:45:54 -03:00
2012-05-08 10:34:22 -04:00
2012-08-02 21:25:12 +10:00

Env: Environment Variables for Humans
=====================================

Mapping environment variables can be a bit of a pain.

Now you can replace this boilerplate::

    ZENDESK_URL = os.environ['ZENDESK_URL']
    ZENDESK_USER = os.environ['ZENDESK_USER']
    ZENDESK_PASS = os.environ['ZENDESK_PASS']
    ZENDESK_VIEW = os.environ['ZENDESK_VIEW']

With a simple call::

    import env

::

    >>> zendesk = env.prefix('zendesk_')
    >>> zendesk
    {'user': ..., 'pass': ..., 'url': ..., 'view': ...}

Or have a bit more control::

    >>> env.map(user='zendesk_user')
    {'user': ...}


Installation
------------

Installation is easy with pip::

    $ pip install env
S
Description
No description provided
Readme BSD-2-Clause 58 KiB
Languages
Python 100%