skip to navigation
skip to content

Flask-Pushrod 0.1.2

An API microframework based on the idea of that the UI is just yet another API endpoint

Latest Version: 0.3

Flask-Pushrod is a simple helper for Flask for doing content negotiation (primarily for running the API and the website on the same code-base, with as little separate handling as possible).


Flask-Pushrod is available on PyPI, so to install the latest stable version simply run

pip install Flask-Pushrod


easy_install Flask-Pushrod


A simple hello world app in Pushrod would look like this:

from flask import Flask, render_template
from flask.ext.pushrod import Pushrod, pushrod_view

import random

app = Flask(__name__)

def hello():
    return {
        'greeting': random.choice(("Hi", "Heya"))

if __name__ == "__main__":

This would, depending on the request, return either the greeting message in JSON or render it through the Jinja2 hello.html template.


$ python test


More advanced documentation is available on Read The Docs.

File Type Py Version Uploaded on Size (md5) Source 2012-10-18 14KB