Source

flask-fluiddb-main / docs / index.rst

Full commit

Flask FluidDB

This extension allows easy access to Fluiddb from Flask. A Fluiddb session is bound, returned, and for convenience tagged to the application isntance.

Grab it:

pip install Flask-FluidDB

Use it:

from flask import Flask
from flaskext.fluiddb import init_fluiddb

app = Flask(__name__)
fluid = init_fluiddb(app)

# start using Fluiddb
fluid.tags[u'fluiddb/about'].get(returnDescription=True)

# or alternatively, for convenience
app.fluid.tags[u'fluiddb/about'].get(returnDescription=True)

API: