Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 76 for Flask (0.02 seconds)

  1. docs/ja/docs/advanced/wsgi.md

    [サブアプリケーション - マウント](sub-applications.md)、[プロキシの背後](behind-a-proxy.md) で見たように、WSGI アプリケーションをマウントできます。
    
    そのために `WSGIMiddleware` を使用して、Flask や Django などの WSGI アプリをラップできます。
    
    ## `WSGIMiddleware` の使用 { #using-wsgimiddleware }
    
    /// info | 情報
    
    これには `a2wsgi` のインストールが必要です。例: `pip install a2wsgi`。
    
    ///
    
    `a2wsgi` から `WSGIMiddleware` をインポートします。
    
    次に、そのミドルウェアで WSGI(例: Flask)アプリをラップします。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  2. docs/en/docs/advanced/wsgi.md

    # Including WSGI - Flask, Django, others { #including-wsgi-flask-django-others }
    
    You can mount WSGI applications as you saw with [Sub Applications - Mounts](sub-applications.md), [Behind a Proxy](behind-a-proxy.md).
    
    For that, you can use the `WSGIMiddleware` and use it to wrap your WSGI application, for example, Flask, Django, etc.
    
    ## Using `WSGIMiddleware` { #using-wsgimiddleware }
    
    /// info
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 1.4K bytes
    - Click Count (0)
  3. docs/zh/docs/advanced/wsgi.md

    # 包含 WSGI - Flask,Django,其它 { #including-wsgi-flask-django-others }
    
    您可以挂载 WSGI 应用,正如您在 [子应用 - 挂载](sub-applications.md)、[在代理之后](behind-a-proxy.md) 中所看到的那样。
    
    为此, 您可以使用 `WSGIMiddleware` 来包装你的 WSGI 应用,如:Flask,Django,等等。
    
    ## 使用 `WSGIMiddleware` { #using-wsgimiddleware }
    
    /// info | 信息
    
    需要安装 `a2wsgi`,例如使用 `pip install a2wsgi`。
    
    ///
    
    您需要从 `a2wsgi` 导入 `WSGIMiddleware`。
    
    然后使用该中间件包装 WSGI 应用(例如 Flask)。
    
    之后将其挂载到某一个路径下。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 1.4K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/advanced/wsgi.md

    # 包含 WSGI:Flask、Django 等 { #including-wsgi-flask-django-others }
    
    你可以像在 [子應用程式 - 掛載](sub-applications.md)、[在 Proxy 後方](behind-a-proxy.md) 中所見那樣掛載 WSGI 應用。
    
    為此,你可以使用 `WSGIMiddleware` 來包住你的 WSGI 應用,例如 Flask、Django 等。
    
    ## 使用 `WSGIMiddleware` { #using-wsgimiddleware }
    
    /// info
    
    這需要先安裝 `a2wsgi`,例如使用 `pip install a2wsgi`。
    
    ///
    
    你需要從 `a2wsgi` 匯入 `WSGIMiddleware`。
    
    然後用該 middleware 包住 WSGI(例如 Flask)應用。
    
    接著把它掛載到某個路徑下。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 1.4K bytes
    - Click Count (0)
  5. docs/ko/docs/advanced/wsgi.md

    [서브 애플리케이션 - 마운트](sub-applications.md), [프록시 뒤에서](behind-a-proxy.md)에서 본 것처럼 WSGI 애플리케이션을 마운트할 수 있습니다.
    
    이를 위해 `WSGIMiddleware`를 사용해 WSGI 애플리케이션(예: Flask, Django 등)을 감쌀 수 있습니다.
    
    ## `WSGIMiddleware` 사용하기 { #using-wsgimiddleware }
    
    /// info | 정보
    
    이를 사용하려면 `a2wsgi`를 설치해야 합니다. 예: `pip install a2wsgi`
    
    ///
    
    `a2wsgi`에서 `WSGIMiddleware`를 import 해야 합니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 1.7K bytes
    - Click Count (0)
  6. docs/en/docs/alternatives.md

    ///
    
    ### [Flask-apispec](https://flask-apispec.readthedocs.io/en/latest/) { #flask-apispec }
    
    It's a Flask plug-in, that ties together Webargs, Marshmallow and APISpec.
    
    It uses the information from Webargs and Marshmallow to automatically generate OpenAPI schemas, using APISpec.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 22.2K bytes
    - Click Count (0)
  7. docs/zh/docs/alternatives.md

    提供自动化的 API 文档 Web 界面。
    
    ///
    
    ### [Flask](https://flask.palletsprojects.com) { #flask }
    
    Flask 是一个“微框架”,它不包含数据库集成,也没有像 Django 那样的许多默认内建功能。
    
    这种简单与灵活使得可以将 NoSQL 数据库作为主要的数据存储系统。
    
    由于非常简单,它相对直观易学,尽管文档在某些部分略显偏技术。
    
    它也常用于不一定需要数据库、用户管理,或任何 Django 预构建功能的应用;当然,许多这类功能可以通过插件添加。
    
    这种组件解耦、可按需扩展的“微框架”特性,是我想保留的关键点。
    
    鉴于 Flask 的简洁,它似乎非常适合构建 API。接下来要找的,就是 Flask 版的 “Django REST Framework”。
    
    /// check | 启发 **FastAPI**:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 20.1K bytes
    - Click Count (0)
  8. docs_src/wsgi/tutorial001_py310.py

    from a2wsgi import WSGIMiddleware
    from fastapi import FastAPI
    from flask import Flask, request
    from markupsafe import escape
    
    flask_app = Flask(__name__)
    
    
    @flask_app.route("/")
    def flask_main():
        name = request.args.get("name", "World")
        return f"Hello, {escape(name)} from Flask!"
    
    
    app = FastAPI()
    
    
    @app.get("/v2")
    def read_main():
        return {"message": "Hello World"}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 426 bytes
    - Click Count (0)
  9. docs/ja/docs/benchmarks.md

        * Starletteを比較する場合は、Sanic、Flask、Djangoなどのwebフレームワーク(またはマイクロフレームワーク)と比較してください。
    * **FastAPI**:
        * StarletteがUvicornを使用しており、それより速くできないのと同じように、**FastAPI**はStarletteを使用しているため、それより速くできません。
        * FastAPIはStarletteの上に、より多くの機能を提供します。データバリデーションやシリアライゼーションのように、APIを構築する際にほとんど常に必要な機能です。また、それを使用することで、自動ドキュメント化を無料で利用できます(自動ドキュメントは実行中のアプリケーションにオーバーヘッドを追加せず、起動時に生成されます)。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  10. docs/lambda/README.md

    ## Example Lambda handler
    
    Install the necessary dependencies.
    ```sh
    pip install flask requests
    ```
    
    Following is an example lambda handler.
    ```py
    from flask import Flask, request, abort, make_response
    import requests
    
    app = Flask(__name__)
    @app.route('/', methods=['POST'])
    def get_webhook():
    	if request.method == 'POST':
    		# obtain the request event from the 'POST' call
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Aug 12 18:20:36 GMT 2025
    - 7.7K bytes
    - Click Count (0)
Back to Top