Skip to content

coderfi/Flask-Hypertable

Repository files navigation

Flask Hypertable

https://travis-ci.org/coderfi/Flask-Hypertable.png?branch=master https://badge.fury.io/gh/coderfi%2FFlask-Hypertable.png https://coveralls.io/repos/coderfi/Flask-Hypertable/badge.png?branch=master Downloads

Flask-Hypertable - A Flask extension which provides connectivity to Hypertable over Thrift.

Features

  • FlaskHypertable hypertable.thrift.ThriftClient Flask extension.

Installation

pip install Flask-Hypertable

Or if you must use easy_install:

alias easy_install="pip install $1"
easy_install Flask-Hypertable

Configuration

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
Hypertable 0.9.5.6 (other versions likely to work) http://hypertable.com/documentation/reference_manual/thrift_api
Thrift https://thrift.apache.org/docs/
Python support Python 2.7
Source https://github.com/coderfi/flask-hypertable
Docs http://flask-hypertable.rtfd.org
Changelog http://flask-hypertable.readthedocs.org/en/latest/history.html
API http://flask-hypertable.readthedocs.org/en/latest/api.html
Issues https://github.com/coderfi/Flask-Hypertable/issues
Travis http://travis-ci.org/coderfi/Flask-Hypertable
Test coverage https://coveralls.io/r/coderfi/Flask-Hypertable
pypi https://pypi.python.org/pypi/Flask-Hypertable
Ohloh https://www.ohloh.net/p/Flask-Hypertable
License BSD.
git repo
$ git clone https://github.com/coderfi/Flask-Hypertable.git
install dev
$ git clone https://github.com/coderfi/Flask-Hypertable.git flask-hypertable
$ cd ./flask-hypertable
$ virtualenv .env
$ source .env/bin/activate
$ pip install -e .
tests
$ python setup.py test

or

$ tox

or

$ python run-tests.py

About This Project

Project started with cookiecutter-pypackage.

About

A Flask extension for Hypertable over Thrift.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published