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 SQLAlchemy db instance is named db
dt = FlaskDt(db)
# This will be called when specifying your routes
@app.route('/tables/<string:tablename>')
@dt.display_table
def your_func():
pass
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 Distribution
flask-dt-0.0.1.2.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for flask_dt-0.0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 047eece321ab8e09fd180264b8c97ca1f77bffc7283491649f2a6bccc3402d97 |
|
MD5 | e19eb8a1ed6f3dc056f664c0dc694f6c |
|
BLAKE2b-256 | fecc4402d40cd05c6922d35aecadaf091f4188d223d61fd32170e364f989e4a4 |