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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file flask_dt-0.0.1.1-py3-none-any.whl
.
File metadata
- Download URL: flask_dt-0.0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce1bc09fb920a836576413062291416e2c14c02e64f4a55fb524917c0abb2303 |
|
MD5 | cc7167d006e4f14a150868a5c973c7e0 |
|
BLAKE2b-256 | 32eacf919f2839a428ecd515ceceea34b1cce6012544089034f4a14573fe0e22 |