Flask-Hypertable
- A Flask extension which provides connectivity to
Hypertable over Thrift.
FlaskHypertable
hypertable.thrift.ThriftClient
Flask extension.
pip install Flask-Hypertable
Or if you must use easy_install:
alias easy_install="pip install $1"
easy_install Flask-Hypertable
Your configuration should be declared within your Flask config.
HYPERTABLE_HOST = "localhost"
HYPERTABLE_PORT = 38080
To create the Hypertable instance within your application
from flask import Flask
from flask_hypertable import FlaskHypertable
app = Flask(__name__)
ht = FlaskHypertable(app)
or
from flask import Flask
from flask_hypertable import FlaskHypertable
ht = FlaskHypertable()
def create_app():
app = Flask(__name__)
ht.init_app(app)
return app
Project started with cookiecutter-pypackage.