Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 94 for Sall (0.12 sec)

  1. docs/en/docs/async.md

    When you want to call an `async def` function, you have to "await" it. So, this won't work:
    
    ```Python
    # This won't work, because get_burgers was defined with: async def
    burgers = get_burgers(2)
    ```
    
    ---
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
  2. docs/en/docs/how-to/sql-databases-peewee.md

    !!! tip
        We only need to create one `PeeweeGetterDict` class, and we can use it in all the Pydantic *models* / schemas.
    
    ## CRUD utils
    
    Now let's see the file `sql_app/crud.py`.
    
    ### Create all the CRUD utils
    
    Create all the same CRUD utils as in the SQLAlchemy tutorial, all the code is very similar:
    
    ```Python hl_lines="1  4-5  8-9  12-13  16-20  23-24  27-30"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (1)
  3. docs/en/docs/advanced/security/oauth2-scopes.md

        ```
    
    ## Use the `scopes`
    
    The parameter `security_scopes` will be of type `SecurityScopes`.
    
    It will have a property `scopes` with a list containing all the scopes required by itself and all the dependencies that use this as a sub-dependency. That means, all the "dependants"... this might sound confusing, it is explained again later below.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/security/simple-oauth2.md

        Jeder HTTP-(Fehler-)Statuscode 401 „UNAUTHORIZED“ soll auch einen `WWW-Authenticate`-Header zurückgeben.
    
        Im Fall von Bearer-Tokens (in unserem Fall) sollte der Wert dieses Headers `Bearer` lauten.
    
        Sie können diesen zusätzlichen Header tatsächlich weglassen und es würde trotzdem funktionieren.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:08:44 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  5. fastapi/openapi/docs.py

                """
            ),
        ] = None,
    ) -> HTMLResponse:
        """
        Generate and return the HTML  that loads Swagger UI for the interactive
        API docs (normally served at `/docs`).
    
        You would only call this function yourself if you needed to override some parts,
        for example the URLs to use to load Swagger UI's JavaScript and CSS.
    
        Read more about it in the
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  6. docs/de/docs/deployment/server-workers.md

            ```
    
        * Der Doppelpunkt in `main:app` entspricht also dem Python-`import`-Teil in `from main import app`.
    
    * `--workers`: Die Anzahl der zu verwendenden Workerprozesse, jeder führt einen Uvicorn-Worker aus, in diesem Fall 4 Worker.
    
    * `--worker-class`: Die Gunicorn-kompatible Workerklasse zur Verwendung in den Workerprozessen.
        * Hier übergeben wir die Klasse, die Gunicorn etwa so importiert und verwendet:
    
            ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:19:25 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  7. docs/fr/docs/contributing.md

    Pour ce faire, il faut d'abord construire tous les documents :
    
    <div class="termy">
    
    ```console
    // Use the command "build-all", this will take a bit
    $ python ./scripts/docs.py build-all
    
    Updating es
    Updating en
    Building docs for: en
    Building docs for: es
    Successfully built docs for: es
    Copying en index.md to README.md
    ```
    
    </div>
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jul 27 18:51:07 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  8. docs/zh/docs/contributing.md

    你可以执行 `./scripts/docs.py live` 命令来预览结果(或者 `mkdocs serve`)。
    
    但是当你完成翻译后,你可以像在线上展示一样测试所有内容,包括所有其他语言。
    
    为此,首先构建所有文档:
    
    <div class="termy">
    
    ```console
    // Use the command "build-all", this will take a bit
    $ python ./scripts/docs.py build-all
    
    Building docs for: en
    Building docs for: es
    Successfully built docs for: es
    ```
    
    </div>
    
    这样会对每一种语言构建一个独立的文档站点,并最终把这些站点全部打包输出到 `./site/` 目录。
    
    
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 11:57:21 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/custom-response.md

    ### `Response`
    
    The main `Response` class, all the other responses inherit from it.
    
    You can return it directly.
    
    It accepts the following parameters:
    
    * `content` - A `str` or `bytes`.
    * `status_code` - An `int` HTTP status code.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  10. tests/test_dependency_contextmanager.py

            ] = f"sync_bg set - b: {state['context_b']} - a: {state['context_a']}"
    
        tasks.add_task(bg, state)
        return state
    
    
    @app.middleware("http")
    async def middleware(request, call_next):
        response: StreamingResponse = await call_next(request)
        response.headers["x-state"] = json.dumps(state.copy())
        return response
    
    
    client = TestClient(app)
    
    
    def test_async_state():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 11.6K bytes
    - Viewed (0)
Back to top