Gilles Dartiguelongue 486bdf56fc Add tox configuration file
Make it easier to run unittests locally.
2018-03-20 15:08:52 +01:00
2018-03-20 15:08:09 +01:00
2018-03-20 15:05:21 +01:00
2012-05-08 10:24:30 -04:00
2012-08-20 11:35:19 +10:00
env
2012-08-20 11:43:19 +10:00
2017-06-04 12:37:09 +01:00
2018-03-20 15:05:46 +01:00
2018-03-20 15:08:52 +01:00

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

.. image:: https://secure.travis-ci.org/kennethreitz/env.png?branch=master
        :target: https://secure.travis-ci.org/kennethreitz/env


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%