Skip to content

GreatDt1/flaskdt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Maintainer

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages