Flask Demo for ConFoo 2014
pip install virtualenv
virtualenv flask
source flask/bin/activate
pip install -r requirements.txt
python hello.py
# set up db
ipython
>>> from quickndirty.database import init_db
>>> init_db()
# check schema
sqlite3 /tmp/test.db
sqlite> .schema scrapbook
# start app
python runserver.py
There is a web frontend available at http://127.0.0.1:5000/ in the browser, and an API available at http://127.0.0.1:5000/api. The API can be called with any HTTP client you wish, but the Postman extension for Chrome is a good choice. I've uploaded a postman json file with example calls here: https://www.getpostman.com/collections/9c65431283ab1d59e34f.
From http://oembed.com/:
oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.
Some providers of oEmbed content include YouTube, Flickr, and NFB.ca (National Film Board of Canada). Quick 'n Dirty is a consumer of oEmbed content.