Skip to content

Instantly share code, notes, and snippets.

View samatjain's full-sized avatar

uıɐɾ ʞ ʇɐɯɐs samatjain

View GitHub Profile
@samatjain
samatjain / gist:1499378
Created December 19, 2011 23:20
Bottle-powered version of OSM XML → JSON proxy
#!/usr/bin/env python
import json
import urlparse
import bottle
import requests
from bottle import request, response, route
from bottle import install, uninstall
@samatjain
samatjain / jsonapiplugin-example.py
Created December 10, 2011 10:40
JSONAPIPlugin for Bottle
#!/usr/bin/env python
# Author: Samat Jain <http://samat.org/>
# License: MIT (same as Bottle)
import bottle
from bottle import request, response, route
from bottle import install, uninstall