Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 118 for command (0.17 sec)

  1. docs_src/dependencies/tutorial003_an.py

            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons: Annotated[Any, Depends(CommonQueryParams)]):
        response = {}
        if commons.q:
            response.update({"q": commons.q})
        items = fake_items_db[commons.skip : commons.skip + commons.limit]
        response.update({"items": items})
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 697 bytes
    - Viewed (0)
  2. docs/en/data/sponsors_badge.yml

      - cryptapi
      - xoflare
      - DropbaseHQ
      - VincentParedes
      - BLUE-DEVIL1134
      - ObliviousAI
      - Doist
      - nihpo
      - armand-sauzay
      - databento-bot
      - databento
      - nanram22
      - Flint-company
      - porter-dev
      - fern-api
      - ndimares
      - svixhq
      - Alek99
      - codacy
      - zanfaruqui
      - scalar
      - bump-sh
      - andrew-propelauth
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Jan 31 22:13:52 GMT 2024
    - 415 bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/dependencies/index.md

    接收到新的请求时,**FastAPI** 执行如下操作:
    
    * 用正确的参数调用依赖项函数(「可依赖项」)
    * 获取函数返回的结果
    * 把函数返回的结果赋值给*路径操作函数*的参数
    
    ```mermaid
    graph TB
    
    common_parameters(["common_parameters"])
    read_items["/items/"]
    read_users["/users/"]
    
    common_parameters --> read_items
    common_parameters --> read_users
    ```
    
    这样,只编写一次代码,**FastAPI** 就可以为多个*路径操作*共享这段代码 。
    
    !!! check "检查"
    
        注意,无需创建专门的类,并将之传递给 **FastAPI** 以进行「注册」或执行类似的操作。
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 7K bytes
    - Viewed (0)
  4. docs/de/docs/contributing.md

    <div class="termy">
    
    ```console
    // Verwenden Sie das Kommando „serve“ nachdem Sie „build-all“ ausgeführt haben.
    $ python ./scripts/docs.py serve
    
    Warning: this is a very simple server. For development, use mkdocs serve instead.
    This is here only to preview a site with translations already built.
    Make sure you run the build-all command first.
    Serving at: http://127.0.0.1:8008
    ```
    
    </div>
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 23:55:23 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  5. fastapi/param_functions.py

        app = FastAPI()
    
    
        async def common_parameters(q: str | None = None, skip: int = 0, limit: int = 100):
            return {"q": q, "skip": skip, "limit": limit}
    
    
        @app.get("/items/")
        async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
            return commons
        ```
        """
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 62.5K bytes
    - Viewed (0)
  6. docs/fr/docs/tutorial/query-params-str-validations.md

    * `deprecated`
    
    Validateurs spécifiques aux chaînes de caractères :
    
    * `min_length`
    * `max_length`
    * `regex`
    
    Parmi ces exemples, vous avez pu voir comment déclarer des validateurs pour les chaînes de caractères.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jul 27 18:53:21 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  7. docs/en/docs/benchmarks.md

    But when checking benchmarks and comparisons you should keep the following in mind.
    
    ## Benchmarks and speed
    
    When you check the benchmarks, it is common to see several tools of different types compared as equivalent.
    
    Specifically, to see Uvicorn, Starlette and FastAPI compared together (among many other tools).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/body-fields.md

        ```
    
    `Field` works the same way as `Query`, `Path` and `Body`, it has all the same parameters, etc.
    
    !!! note "Technical Details"
        Actually, `Query`, `Path` and others you'll see next create objects of subclasses of a common `Param` class, which is itself a subclass of Pydantic's `FieldInfo` class.
    
        And Pydantic's `Field` returns an instance of `FieldInfo` as well.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/middleware.md

    ```
    
    `app.add_middleware()` receives a middleware class as the first argument and any additional arguments to be passed to the middleware.
    
    ## Integrated middlewares
    
    **FastAPI** includes several middlewares for common use cases, we'll see next how to use them.
    
    !!! note "Technical Details"
        For the next examples, you could also use `from starlette.middleware.something import SomethingMiddleware`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 10 18:27:10 GMT 2023
    - 4K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/graphql.md

    You can combine normal FastAPI *path operations* with GraphQL on the same application.
    
    !!! tip
        **GraphQL** solves some very specific use cases.
    
        It has **advantages** and **disadvantages** when compared to common **web APIs**.
    
        Make sure you evaluate if the **benefits** for your use case compensate the **drawbacks**. 🤓
    
    ## GraphQL Libraries
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 3.4K bytes
    - Viewed (0)
Back to top