A python library to display routes in a flask application
Project description
KOII
Python module for displaying routes in a flask application. This is a python variant for Koii. It's a simple to use flask middleware that simply prints all the routes in a Flask application on the console.
Installation
Koii is easy to install - it currently can be installed using the pip
or pipenv
command.
pip install koii
pipenv install koii
Usage
To make use of Koii, ensure you initialize the middleware by passing the instance of your flaks app into the class or the init_app
method. Ensure the class is initialized after your routes have been defined. If you're making use of blueprints, the same also applies, place the initialisation of the class after your blue print registration.
from koii import Koii
app = Flask(__name__)
Koii(app) # alternatively Koii.init_app(app)
An example file can be found 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
Built Distribution
File details
Details for the file koii-1.0.1.tar.gz
.
File metadata
- Download URL: koii-1.0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72a54c5bd5dda025f8959433895de885885d521b1f755e54c9fb3a7352276ed1 |
|
MD5 | 3f7c64d32efffba09bf934a13ba3a6dc |
|
BLAKE2b-256 | af1fd98c4dbf5a83c7776368514ddeca72b1878da9c5c6b365ca45882b8e9833 |
File details
Details for the file koii-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: koii-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ee46ad837dfc5e6963abb188f723abdbe74b57607a7ae0faeecd1ae4726b12c |
|
MD5 | 72be2caee990a5034a275484af7b323d |
|
BLAKE2b-256 | d0bbdb4fe9a8ac3675af370dab1a48ae59d13a0c6f4953db78e6710a1e7a5df6 |