flask-inspektor-0.1.1
توضیحات
SQLAlchemy querying metrics collection and reporting extension for Flask.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | flask-inspektor-0.1.1 |
| نام | flask-inspektor |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Byrd Technologies GmbH |
| ایمیل نویسنده | developers@getbyrd.com |
| آدرس صفحه اصلی | https://github.com/getbyrd/inspektor |
| آدرس اینترنتی | https://pypi.org/project/flask-inspektor/ |
| مجوز | MIT |



# Flask-Inspektor
SQLAlchemy querying metrics collection and reporting extension for Flask.
Heavily influenced by [flask-queryinspect](https://github.com/noise/flask-queryinspect).
[](https://www.flickr.com/photos/veryveryquiet)
## Installation
For now you have to use the Git repository:
```bash
pip install git+https://github.com/getbyrd/inspektor.git#egg=flask-inspektor
```
## Usage
Using eagerly configured Flask application:
```python
from flask import Flask
from flask_inspektor import QueryInspector
app = Flask(__name__)
qi = QueryInspector(app)
```
Using lazy configuration or application factory pattern:
```python
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](mailto:developers@getbyrd.com) of [Byrd](https://getbyrd.com).
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0 | flask |
| >=0.16.0 | future |
| >=1.2.2 | SQLAlchemy |
| <2.5.0,>=2.4.0 | Flask-SQLAlchemy |
| >=0.7.1 | flask-testing |
| >=4.6.0 | pytest |
| - | twine |
| <2.5.0,>=2.4.0 | Flask-SQLAlchemy |
| >=0.7.1 | flask-testing |
| >=4.6.0 | pytest |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* | Python |
نحوه نصب
نصب پکیج whl flask-inspektor-0.1.1:
pip install flask-inspektor-0.1.1.whl
نصب پکیج tar.gz flask-inspektor-0.1.1:
pip install flask-inspektor-0.1.1.tar.gz