flask-ext-request-id-0.0.2
توضیحات
flask app init request id
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | flask-ext-request-id-0.0.2 |
| نام | flask-ext-request-id |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | ['pengmingqiang'] |
| ایمیل نگهدارنده | ['rockypengchina@outlook.com'] |
| نویسنده | pengmingqiang |
| ایمیل نویسنده | rockypengchina@outlook.com |
| آدرس صفحه اصلی | https://github.com/meanstrong/flask-ext-request-id |
| آدرس اینترنتی | https://pypi.org/project/flask-ext-request-id/ |
| مجوز | GPLv3 |
# flask-request-id - 一个Flask每次接收请求时生成request_id的模块
## About
一个Flask每次接收请求时生成request_id的模块。
## Requirements
- Python3
## Install
通过pip命令安装:
```shell
pip install flask-ext-request-id
```
## Usage
```python
from flask import Flask
from flask_ext_request_id import RequestId
app = Flask(__name__)
request_id = RequestId(app)
@app.route("/hello")
def hello():
return request_id.current_id
```
## Author
- <a href="mailto:pmq2008@gmail.com">Rocky Peng</a>
نحوه نصب
نصب پکیج whl flask-ext-request-id-0.0.2:
pip install flask-ext-request-id-0.0.2.whl
نصب پکیج tar.gz flask-ext-request-id-0.0.2:
pip install flask-ext-request-id-0.0.2.tar.gz