Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Simple response utility for Flask

Project Description
Flask-Responses 0.2

.. image::
:alt: Latest Version

.. image::
:alt: Build Status

.. image::
:alt: Coverage Status

.. module:: flask.ext.responses

Simple response utility for `Flask`.

.. _Flask:


.. sourcecode:: bash

~ $ python install

or can use pip

.. sourcecode:: bash

~ $ pip install flask-responses

Quick start

.. sourcecode:: python

from flask import Flask
from flask.ext.responses import json_response, xml_response, auto_response

app = Flask(__name__)

def hello():
return json_response({"message": "Hello World!"}, status_code=201)

def world():
return xml_response({"message": "Hello World!"}, headers={'x-foo': 'bar'}) # or can do this xml_response('<message>Hello World</message>')

def auto():
return auto_response({"message": "Hello World!"}, status_code=201, headers={'x-foo': 'bar'})

* JSON (json_response)
* XML (xml_response)

* allow origin cross domain
* server sent evnets
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Flask-Responses-0.2.tar.gz (2.6 kB) Copy SHA256 Checksum SHA256 Source Jan 19, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting