https://github.com/meanstrong/flask-ext-request-id
https://github.com/meanstrong/flask-ext-request-id
flask flask-extension python3
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/meanstrong/flask-ext-request-id
- Owner: meanstrong
- License: gpl-3.0
- Created: 2021-02-25T06:48:35.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-19T02:46:50.000Z (over 5 years ago)
- Last Synced: 2025-10-26T22:42:59.762Z (8 months ago)
- Topics: flask, flask-extension, python3
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flask-request-id - 一个Flask每次接收请求时生成request_id的模块
[](https://pypi.org/project/flask-ext-request-id/)
[](https://pypi.org/project/flask-ext-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
- Rocky Peng