Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/braingram/flask_ajaxify

Flask blueprint to make an object ajax accessible
https://github.com/braingram/flask_ajaxify

Last synced: about 2 months ago
JSON representation

Flask blueprint to make an object ajax accessible

Awesome Lists containing this project

README

        

An example of a flask blueprint that exports a python object
to be ajax accessible

import flask_ajaxify
flask_ajaxify.test()

open web browser and go to 127.0.0.1:5000/ajaxify/test

import flask
import flask_ajaxify

some_object = Foo()
app = flask.Flask(__name__)
flask_ajaxify.make_blueprint(some_object, app=app, register=True)
app.run()