Skip to main content

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:

pip install flask-dt

Usage

from flask_dt import FlaskDt

# 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")


# This will be called when specifying your routes
dt.display_table()  

You will find a simple flask application that utilises flask-dt here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

flask_dt-0.0.1.1-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

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