Skip to content

porthunt/flask-cloudant

Repository files navigation

Flask-Cloudant

Build Status Code Climate

Adds Cloudant support to Flask. Built on top of python-cloudant.

Installing

pip install flask-cloudant

Configuring

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 the CLOUDANT_USER as the account.

Let's use it

from flask import Flask
from flask_cloudant import FlaskCloudant


app = Flask(__name__)
app.config.from_object('config')
store_cloudant = FlaskCloudant(app)

About

A Flask library for using Cloudant

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages