Skip to content

Instantly share code, notes, and snippets.

@eads
Created November 11, 2015 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eads/bc0973801ca1642a9dba to your computer and use it in GitHub Desktop.
Save eads/bc0973801ca1642a9dba to your computer and use it in GitHub Desktop.
from Flask import g, jsonify
@blueprint.route('mydata.json')
def mydata():
context = g.current_site.get_context()
mydata = context['sheetname']
# ... process / filter mydata
return jsonify(**mydata)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment