Permalink
Browse files

setup.py

  • Loading branch information...
1 parent 043342e commit 14337a9328dcbe664fcc9b2620ec0371c82d9364 @kennethreitz committed May 8, 2012
Showing with 57 additions and 0 deletions.
  1. +57 −0 setup.py
View
@@ -0,0 +1,57 @@
+# -*- coding: utf-8 -*-
+"""
+env.py
+~~~~~~
+
+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': ...}
+
+
+"""
+
+from setuptools import setup
+
+setup(
+ name='env',
+ version='0.1.0',
+ url='https://github.com/kennethreitz/env',
+ license='BSD',
+ author='Kenneth Reitz',
+ author_email='me@kennethreitz.com',
+ description='Environment Variables for Humans',
+ long_description=__doc__,
+ py_modules=['env'],
+ zip_safe=False,
+ include_package_data=True,
+ platforms='any',
+ classifiers=[
+ 'Environment :: Web Environment',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: BSD License',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python',
+ 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
+ 'Topic :: Software Development :: Libraries :: Python Modules'
+ ]
+)

0 comments on commit 14337a9

Please sign in to comment.