Skip to main content

A python library to display routes in a flask application

Project description

KOII

Open Source Love Open Source Love

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.

Koii is inspired by Jackie and the fish

Support me via Patreon

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

koii-1.0.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

koii-1.0.1-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page