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
Release files for flask-dt 0.0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flask-dt-0.0.1.2.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_dt-0.0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:6.8 kB
Release files / flask-dt-0.0.1.2.tar.gz
| Download URL | flask-dt-0.0.1.2.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33a41e9b12fcae268f47ed7105e08fab35b05985476291f10ad5d9875b77f427
|
|
BLAKE2b-256 checksum How to use checksums |
3a30a04a31de251bd43ce9bc6e048fc73248c6c6a744dc41e8378dd2d8fbf769
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.4
|
Release files / flask_dt-0.0.1.2-py3-none-any.whl
| Download URL | flask_dt-0.0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
047eece321ab8e09fd180264b8c97ca1f77bffc7283491649f2a6bccc3402d97
|
|
BLAKE2b-256 checksum How to use checksums |
fecc4402d40cd05c6922d35aecadaf091f4188d223d61fd32170e364f989e4a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.4
|