SQLAlchemy querying metrics collection and reporting extension for Flask.
Project description
Flask-Inspektor
SQLAlchemy querying metrics collection and reporting extension for Flask. Heavily influenced by flask-queryinspect.
Installation
For now you have to use the Git repository:
pip install git+https://github.com/getbyrd/inspektor.git#egg=flask-inspektor
Usage
Using eagerly configured Flask application:
from flask import Flask
from flask_inspektor import QueryInspector
app = Flask(__name__)
qi = QueryInspector(app)
Using lazy configuration or application factory pattern:
from flask import Flask
from flask_inspektor import QueryInspector
qi = QueryInspector()
def create_app():
app = Flask(__name__)
qi.init_app(app)
Configuration
Note: Query inspector is not enabled by default.
Variable | Default | Description |
---|---|---|
QUERYINSPECT_ENABLED | False | Activate the extension / react to SQL queries. |
QUERYINSPECT_HEADERS | True | Enable reporting in HTTP response header. |
QUERYINSPECT_LOG | True | Enable reporting in INFO level log message. |
QUERYINSPECT_LOG_DUPES | False | Enable logging of duplicated SQL queries. |
Delivered to you by developers of Byrd.
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-inspektor-0.1.1.tar.gz
(14.9 kB
view details)
Built Distribution
File details
Details for the file flask-inspektor-0.1.1.tar.gz
.
File metadata
- Download URL: flask-inspektor-0.1.1.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76849c682c33407a0bb8d1a16f3a7af7f55fe3b25e6d5a3c0785d1feb488e875 |
|
MD5 | a79f18a5eef26dcccd975e6971f62380 |
|
BLAKE2b-256 | 80f42dd9f1d73c5442e31561eab824a2d55b07d7e4e8f439fac66b767c218669 |
File details
Details for the file flask_inspektor-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: flask_inspektor-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b89d8fbf7a41d08ec7b076e44f139f1f979a38e240b92b7b68145471562fb4b |
|
MD5 | 738941b3f966f30ae68791ea7a1e9d6d |
|
BLAKE2b-256 | 086a633e57426f74e6b7e14a7593fbecc0187cc391f769e1db3683831090d025 |