{ "info": { "author": "Ayun Park", "author_email": "iamparkayun@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Flask-Responses 0.2\n===================\n\n.. image:: https://pypip.in/version/flask-responses/badge.svg\n :target: https://pypi.python.org/pypi/flask-responses/\n :alt: Latest Version\n\n.. image:: https://secure.travis-ci.org/Parkayun/flask-responses.svg?branch=master\n :alt: Build Status\n :target: https://travis-ci.org/Parkayun/flask-responses\n\n.. image:: https://img.shields.io/coveralls/Parkayun/flask-responses.svg\n :alt: Coverage Status\n :target: https://coveralls.io/r/Parkayun/flask-responses\n\n.. module:: flask.ext.responses\n\nSimple response utility for `Flask`.\n\n.. _Flask: http://flask.pocoo.org/\n\nInstallation\n-------------\n\n.. sourcecode:: bash\n\n ~ $ python setup.py install\n \nor can use pip\n\n.. sourcecode:: bash\n\n ~ $ pip install flask-responses\n\nQuick start\n-----------\n\n.. sourcecode:: python\n\n from flask import Flask\n from flask.ext.responses import json_response, xml_response, auto_response\n\n app = Flask(__name__)\n\n @app.route(\"/json\")\n def hello():\n return json_response({\"message\": \"Hello World!\"}, status_code=201)\n \n @app.route(\"/xml\")\n def world():\n return xml_response({\"message\": \"Hello World!\"}, headers={'x-foo': 'bar'}) # or can do this xml_response('Hello World')\n \n @app.route(\"/auto\")\n def auto():\n return auto_response({\"message\": \"Hello World!\"}, status_code=201, headers={'x-foo': 'bar'})\n \nResponses\n---------\n* JSON (json_response)\n* XML (xml_response)\n\nToDo\n----\n* allow origin cross domain\n* server sent evnets", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Parkayun/flask-responses", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "Flask-Responses", "package_url": "https://pypi.org/project/Flask-Responses/", "platform": "any", "project_url": "https://pypi.org/project/Flask-Responses/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Parkayun/flask-responses" }, "release_url": "https://pypi.org/project/Flask-Responses/0.2/", "requires_dist": null, "requires_python": null, "summary": "Simple response utility for Flask", "version": "0.2" }, "last_serial": 1387421, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "8479306eeccde32b77728cd7d4f4ac6d", "sha256": "1ef9c9eed9fb32f427faf1cb49fdb6410ee985970723e05fe89b5e5ea9a7c564" }, "downloads": -1, "filename": "Flask-Responses-0.1.tar.gz", "has_sig": false, "md5_digest": "8479306eeccde32b77728cd7d4f4ac6d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1721, "upload_time": "2015-01-17T08:02:17", "url": "https://files.pythonhosted.org/packages/eb/e1/e6fd0989f02ea2dc403c23f7baa385a47f5b3892f54144ef2c213cb9b00b/Flask-Responses-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "084095ce15be6ff06d47e09ebbc54703", "sha256": "5a0a30e13e0651b645c89552cd17972664769e351a978b1356ccc806f7a567e2" }, "downloads": -1, "filename": "Flask-Responses-0.2.tar.gz", "has_sig": false, "md5_digest": "084095ce15be6ff06d47e09ebbc54703", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2551, "upload_time": "2015-01-19T02:36:34", "url": "https://files.pythonhosted.org/packages/57/66/ab2acb269a04ed3993be29059e2cdb241bdc1ec9318ea976408a33c19043/Flask-Responses-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "084095ce15be6ff06d47e09ebbc54703", "sha256": "5a0a30e13e0651b645c89552cd17972664769e351a978b1356ccc806f7a567e2" }, "downloads": -1, "filename": "Flask-Responses-0.2.tar.gz", "has_sig": false, "md5_digest": "084095ce15be6ff06d47e09ebbc54703", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2551, "upload_time": "2015-01-19T02:36:34", "url": "https://files.pythonhosted.org/packages/57/66/ab2acb269a04ed3993be29059e2cdb241bdc1ec9318ea976408a33c19043/Flask-Responses-0.2.tar.gz" } ] }