How to use the Consumer Notebook API with Python's Flask microframework and Heroku.
JavaScript Python
Latest commit a746ee6 Apr 16, 2012 @pydanny pydanny Merge pull request #2 from pydanny/master
Get OAUTH working
Failed to load latest commit information.
app Working in the views and oauth stuff Mar 21, 2012
static Initial commit of skeleton app, in preparation for Consumer Notebook … Mar 3, 2012

Flask Sample Project

By @audreyr.

This is a sample Flask project that uses the Consumer Notebook API.

Running it locally

In your terminal::

$ git clone
$ cd cn-flask-sample
$ mkvirtualenv cn-flask-sample
$ pip install -r requirements.txt

To run it in debug mode locally::

$ python

In your browser, go to

Note: you can also run it with Foreman, but you won't get the debugger::

$ foreman start

Deploying it on Heroku

Follow the deployment instructions at


This demo is mostly based on the code from the Flask Heroku project, which is a template to get your Flask app running on Heroku as fast as possible.