Skip to main content
PyCon US is happening May 14th-22nd in Pittsburgh, PA USA.  Learn more

Creates connections for use with DB2

Project description

Flask-DB2

Flask-DB2 is an extension to Flask that uses the ibm_db_dbi driver for database connections.

from flask import Flask
from flask_db2 import DB2

app = Flask(__name__)
db = DB2(app)


@app.route('/')
def index()
    cur = db.connection.cursor()
    cur.execute(...)

get Flask-DB2

Install flask

sudo easy_install Flask-DB2

Download the latest release from Python Package Index or clone the repository

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page