Skip to main content

flask app init request id

Project description

flask-request-id - 一个Flask每次接收请求时生成request_id的模块

About

一个Flask每次接收请求时生成request_id的模块。

Requirements

  • Python3

Install

通过pip命令安装:

pip install flask-ext-request-id

Usage

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

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

flask-ext-request-id-0.0.2.zip (18.1 kB view hashes)

Uploaded Source

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