Display Tables
Project description
Flask Dt
This is a script to help you display any of the tables in your db using SQLAlchemy in your Flask Routes
Installation
Run the following to install:
'''python pip install flask-dt '''
Usage
'''python from flask_dt import *
after declaring your Flask app and SQLAlchemy db instances plus any other additional instances
assuming your Flask app and SQLAlchemy db instances are named app and db respectively
dt = FlaskDt(app, db, "templatename.html", "route")
dt.display_table() '''
Developing Flask-dt
To install flask-dt, along with the tools you need to develop and run tests, run the following in your virtualenv:
'''bash $ pip install -e .[dev] '''
However this specific package requires a basic flask application setup The structure for running tests is something to be looked into
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flask-dt-0.0.1.tar.gz
(3.8 kB
view hashes)