Metadata-Version: 2.0
Name: env-excavator
Version: 1.5.0
Summary: Tools for exconverting environment variables to native python objects
Home-page: https://github.com/simpleenergy/env-excavator
Author: Piper Merriam
Author-email: piper@simpleenergy.com
License: MIT
Keywords: env-excavator
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5

=============================
env-excavator
=============================

.. image:: https://badge.fury.io/py/env-excavator.png
    :target: https://badge.fury.io/py/env-excavator

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

Tools for exconverting environment variables to native python objects

Quickstart
----------

Install env-excavator::

    pip install env-excavator

Example use it in a project::

    >>> import os
    >>> import excavator as env
    >>> os.environ['FROM_EMAIL'] = 'admin@example.com'
    >>> env.get('FROM_EMAIL')
    'admin@example.com'
    >>> os.environ['DEBUG'] = 'True'
    >>> env.get('DEBUG', type=bool)
    True
    >>> os.environ['ALLOWED_HOSTS'] = '.example.com,.example.net'
    >>> env.get('ALLOWED_HOSTS', type=list)
    ['.example.com', '.example.net']


