Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 121 for tutorial001_03_py39 (0.08 sec)

  1. docs/es/docs/tutorial/request-forms-and-files.md

    ## Importa `File` y `Form` { #import-file-and-form }
    
    {* ../../docs_src/request_forms_and_files/tutorial001_an_py39.py hl[3] *}
    
    ## Define parámetros `File` y `Form` { #define-file-and-form-parameters }
    
    Crea parámetros de archivo y formulario de la misma manera que lo harías para `Body` o `Query`:
    
    {* ../../docs_src/request_forms_and_files/tutorial001_an_py39.py hl[10:12] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/request-forms-and-files.md

    ## Importe `File` e `Form` { #import-file-and-form }
    
    {* ../../docs_src/request_forms_and_files/tutorial001_an_py39.py hl[3] *}
    
    ## Defina parâmetros de `File` e `Form` { #define-file-and-form-parameters }
    
    Crie parâmetros de arquivo e formulário da mesma forma que você faria para `Body` ou `Query`:
    
    {* ../../docs_src/request_forms_and_files/tutorial001_an_py39.py hl[10:12] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  3. docs/uk/docs/tutorial/request-files.md

    ///
    
    ## Імпорт `File`
    
    Імпортуйте `File` та `UploadFile` з `fastapi`:
    
    {* ../../docs_src/request_files/tutorial001_an_py39.py hl[3] *}
    
    ## Визначення параметрів `File`
    
    Створіть параметри файлів так само як Ви б створювали `Body` або `Form`:
    
    {* ../../docs_src/request_files/tutorial001_an_py39.py hl[9] *}
    
    /// info | Інформація
    
    `File`  — це клас, який безпосередньо успадковує `Form`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Feb 22 22:01:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/request-files.md

    Импортируйте `File` и `UploadFile` из модуля `fastapi`:
    
    {* ../../docs_src/request_files/tutorial001_an_py39.py hl[3] *}
    
    ## Определите параметры `File` { #define-file-parameters }
    
    Создайте параметры `File` так же, как вы это делаете для `Body` или `Form`:
    
    {* ../../docs_src/request_files/tutorial001_an_py39.py hl[9] *}
    
    /// info | Дополнительная информация
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_behind_a_proxy/test_tutorial001_01.py

    from fastapi.testclient import TestClient
    
    from docs_src.behind_a_proxy.tutorial001_01_py39 import app
    
    client = TestClient(
        app,
        base_url="https://example.com",
        follow_redirects=False,
    )
    
    
    def test_redirect() -> None:
        response = client.get("/items")
        assert response.status_code == 307
        assert response.headers["location"] == "https://example.com/items/"
    
    
    def test_no_redirect() -> None:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 544 bytes
    - Viewed (0)
  6. tests/test_tutorial/test_metadata/test_tutorial001_1.py

    from fastapi.testclient import TestClient
    
    from docs_src.metadata.tutorial001_1_py39 import app
    
    client = TestClient(app)
    
    
    def test_items():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [{"name": "Katana"}]
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/request-files.md

    Importieren Sie `File` und `UploadFile` von `fastapi`:
    
    {* ../../docs_src/request_files/tutorial001_an_py39.py hl[3] *}
    
    ## `File`-Parameter definieren { #define-file-parameters }
    
    Erstellen Sie Datei-Parameter, so wie Sie es auch mit `Body` und `Form` machen würden:
    
    {* ../../docs_src/request_files/tutorial001_an_py39.py hl[9] *}
    
    /// info | Info
    
    `File` ist eine Klasse, die direkt von `Form` erbt.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/security/first-steps.md

    Let's first just use the code and see how it works, and then we'll come back to understand what's happening.
    
    ## Create `main.py` { #create-main-py }
    
    Copy the example in a file `main.py`:
    
    {* ../../docs_src/security/tutorial001_an_py39.py *}
    
    ## Run it { #run-it }
    
    /// info
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_authentication_error_status_code/test_tutorial001.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    
    @pytest.fixture(
        name="client",
        params=[
            "tutorial001_an_py39",
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(
            f"docs_src.authentication_error_status_code.{request.param}"
        )
    
        client = TestClient(mod.app)
        return client
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/authentication-error-status-code.md

    For example, you can create a subclass of `HTTPBearer` that returns a `403 Forbidden` error instead of the default `401 Unauthorized` error:
    
    {* ../../docs_src/authentication_error_status_code/tutorial001_an_py39.py hl[9:13] *}
    
    /// tip
    
    Notice that the function returns the exception instance, it doesn't raise it. The raising is done in the rest of the internal code.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 24 19:03:06 UTC 2025
    - 1.3K bytes
    - Viewed (0)
Back to top