From eb6b7009f518ccf21f02a89f05b8bbd9adc79a41 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 8 Jun 2010 11:25:16 +0200 Subject: [PATCH] first commit --- LICENSE | 31 +++++++++++++++++++++++++++++++ README | 3 +++ flaskext/__init__.py | 1 + flaskext/jsonify.py | 10 ++++++++++ setup.py | 42 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 87 insertions(+) create mode 100644 LICENSE create mode 100644 README create mode 100644 flaskext/__init__.py create mode 100644 flaskext/jsonify.py create mode 100644 setup.py diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7b1fb55 --- /dev/null +++ b/LICENSE @@ -0,0 +1,31 @@ +Copyright (c) 2010 by Frederic Junod. + +Some rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + +* The names of the contributors may not be used to endorse or + promote products derived from this software without specific + prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README b/README new file mode 100644 index 0000000..bf23aa9 --- /dev/null +++ b/README @@ -0,0 +1,3 @@ +flask-jsonify + +Description goes here diff --git a/flaskext/__init__.py b/flaskext/__init__.py new file mode 100644 index 0000000..de40ea7 --- /dev/null +++ b/flaskext/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/flaskext/jsonify.py b/flaskext/jsonify.py new file mode 100644 index 0000000..94de412 --- /dev/null +++ b/flaskext/jsonify.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +""" + flaskext.jsonify + ~~~~~~~~~~~~~~~~ + + Description of the module goes here... + + :copyright: (c) 2010 by Frederic Junod. + :license: BSD, see LICENSE for more details. +""" diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..356d452 --- /dev/null +++ b/setup.py @@ -0,0 +1,42 @@ +""" +flask-jsonify +------------- + +Description goes here... + +Links +````` + +* `documentation `_ + +""" +from setuptools import setup + + +setup( + name='flask-jsonify', + version='0.1', + url='', + license='BSD', + author='Frederic Junod', + author_email='frederic.junod@gmail.com', + description='A small Flask decorator for returning json', + long_description=__doc__, + packages=['flaskext'], + namespace_packages=['flaskext'], + zip_safe=False, + platforms='any', + install_requires=[ + 'Flask' + ], + classifiers=[ + 'Development Status :: 4 - Beta', + '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' + ] +)