Adds Cloudant support to Flask. Built on top of python-cloudant.
pip install flask-cloudant
Use your Cloudant credentials on the Flask config. Set your info like this:
CLOUDANT_USER = "your-cloudant-username"
CLOUDANT_PWD = "your-cloudant-password"
CLOUDANT_ACCOUNT = "your-cloudant-account"
If you don't define your
CLOUDANT_ACCOUNT
, Flask-Cloudant will use theCLOUDANT_USER
as the account.
from flask import Flask
from flask_cloudant import FlaskCloudant
app = Flask(__name__)
app.config.from_object('config')
store_cloudant = FlaskCloudant(app)