Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 195 for some (0.13 sec)

  1. tests/test_tutorial/test_path_params/test_tutorial005.py

    
    def test_get_enums_resnet():
        response = client.get("/models/resnet")
        assert response.status_code == 200
        assert response.json() == {"model_name": "resnet", "message": "Have some residuals"}
    
    
    def test_get_enums_invalid():
        response = client.get("/models/foo")
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 5K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/debugging.md

    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    ๐Ÿ”œ ๐Ÿƒ.
    
    ---
    
    ๐Ÿ‘‰ ๐Ÿ† ๐Ÿšซ ๐Ÿ”จ ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ—„ ๐Ÿ‘ˆ ๐Ÿ•น (๐Ÿ“).
    
    , ๐Ÿšฅ ๐Ÿ‘† โœ”๏ธ โž•1๏ธโƒฃ ๐Ÿ“ `importer.py` โฎ๏ธ:
    
    ```Python
    from myapp import app
    
    # Some more code
    ```
    
    ๐Ÿ‘ˆ ๐Ÿ’ผ, ๐Ÿง ๐Ÿ”ข ๐Ÿ”˜ `myapp.py` ๐Ÿ”œ ๐Ÿšซ โœ”๏ธ ๐Ÿ”ข `__name__` โฎ๏ธ ๐Ÿ’ฒ `"__main__"`.
    
    , โธ:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    ๐Ÿ”œ ๐Ÿšซ ๐Ÿ› ๏ธ.
    
    !!! info
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_websockets/test_tutorial002.py

        with pytest.raises(WebSocketDisconnect):
            with client.websocket_connect("/items/bar/ws?token=some-token") as websocket:
                message = "Message one"
                websocket.send_text(message)
                data = websocket.receive_text()
                assert data == "Session cookie or query token value is: some-token"
                data = websocket.receive_text()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Nov 13 14:26:09 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/background-tasks.md

    * Eine beliebige Folge von Argumenten, die der Reihe nach an die Taskfunktion รผbergeben werden sollen (`email`).
    * Alle Schlรผsselwort-Argumente, die an die Taskfunktion รผbergeben werden sollen (`message="some notification"`).
    
    ## Dependency Injection
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jan 12 14:15:29 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  5. docs/en/docs/history-design-future.md

    # History, Design and Future
    
    Some time ago, <a href="https://github.com/tiangolo/fastapi/issues/3#issuecomment-454956920" class="external-link" target="_blank">a **FastAPI** user asked</a>:
    
    > Whatโ€™s the history of this project? It seems to have come from nowhere to awesome in a few weeks [...]
    
    Here's a little bit of that history.
    
    ## Alternatives
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/query-params.md

    ```
    
    ...this would work:
    
    ```JSON
    {
        "item_id": "foo-item",
        "needy": "sooooneedy"
    }
    ```
    
    And of course, you can define some parameters as required, some as having a default value, and some entirely optional:
    
    === "Python 3.10+"
    
        ```Python hl_lines="8"
        {!> ../../../docs_src/query_params/tutorial006_py310.py!}
        ```
    
    === "Python 3.8+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Oct 20 09:08:42 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/security/http-basic-auth.md

    #### The time to answer helps the attackers
    
    At that point, by noticing that the server took some microseconds longer to send the "Incorrect username or password" response, the attackers will know that they got _something_ right, some of the initial letters were right.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 14:33:05 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_websockets/test_tutorial002_an_py310.py

        with pytest.raises(WebSocketDisconnect):
            with client.websocket_connect("/items/bar/ws?token=some-token") as websocket:
                message = "Message one"
                websocket.send_text(message)
                data = websocket.receive_text()
                assert data == "Session cookie or query token value is: some-token"
                data = websocket.receive_text()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

        ```Python hl_lines="17"
        {!> ../../../docs_src/dependencies/tutorial006.py!}
        ```
    
    These dependencies will be executed/solved the same way as normal dependencies. But their value (if they return any) won't be passed to your *path operation function*.
    
    !!! tip
        Some editors check for unused function parameters, and show them as errors.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/response-status-code.md

    {!../../../docs_src/response_status_code/tutorial002.py!}
    ```
    
    They are just a convenience, they hold the same number, but that way you can use the editor's autocomplete to find them:
    
    <img src="/img/tutorial/response-status-code/image02.png">
    
    !!! note "Technical Details"
        You could also use `from starlette import status`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 29 14:02:58 GMT 2020
    - 4K bytes
    - Viewed (0)
Back to top