Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 890 for docs_src (0.26 sec)

  1. docs/em/docs/tutorial/body.md

    ///
    
    ## ๐Ÿ—„ Pydantic `BaseModel`
    
    ๐Ÿฅ‡, ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ—„ `BaseModel` โšช๏ธโžก๏ธ `pydantic`:
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.6๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="4"
    {!> ../../docs_src/body/tutorial001.py!}
    ```
    
    ////
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.1๏ธโƒฃ0๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="2"
    {!> ../../docs_src/body/tutorial001_py310.py!}
    ```
    
    ////
    
    ## โœ ๐Ÿ‘† ๐Ÿ’ฝ ๐Ÿท
    
    โคด๏ธ ๐Ÿ‘† ๐Ÿ“ฃ ๐Ÿ‘† ๐Ÿ’ฝ ๐Ÿท ๐ŸŽ“ ๐Ÿ‘ˆ ๐Ÿ˜– โšช๏ธโžก๏ธ `BaseModel`.
    
    โš™๏ธ ๐Ÿฉ ๐Ÿ ๐Ÿ†Ž ๐ŸŒ ๐Ÿ”ข:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/query-params-str-validations.md

    Para isso, primeiro importe `Query` de `fastapi`:
    
    ```Python hl_lines="3"
    {!../../docs_src/query_params_str_validations/tutorial002.py!}
    ```
    
    ## Use `Query` como o valor padrรฃo
    
    Agora utilize-o como valor padrรฃo do seu parรขmetro, definindo o parรขmetro `max_length` para 50:
    
    ```Python hl_lines="9"
    {!../../docs_src/query_params_str_validations/tutorial002.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. docs/em/docs/advanced/generate-clients.md

    ## ๐Ÿ— ๐Ÿ“• ๐Ÿ•ธ ๐Ÿ‘ฉโ€๐Ÿ’ป
    
    โžก๏ธ โ–ถ๏ธ โฎ๏ธ ๐Ÿ™… FastAPI ๐Ÿˆธ:
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.6๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="9-11  14-15  18  19  23"
    {!> ../../docs_src/generate_clients/tutorial001.py!}
    ```
    
    ////
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.9๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="7-9  12-13  16-17  21"
    {!> ../../docs_src/generate_clients/tutorial001_py39.py!}
    ```
    
    ////
    
    ๐Ÿ‘€ ๐Ÿ‘ˆ *โžก ๐Ÿ› ๏ธ* ๐Ÿ”ฌ ๐Ÿท ๐Ÿ‘ซ โš™๏ธ ๐Ÿ“จ ๐Ÿš€ & ๐Ÿ“จ ๐Ÿš€, โš™๏ธ ๐Ÿท `Item` & `ResponseMessage`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    ้€šๅธธไฝฟ็”จใ—ใฆใ„ใ‚‹ไพๅญ˜้–ขไฟ‚ใฎ*้–ขๆ•ฐ*ใจๅŒใ˜ใ‚‚ใฎใ‚’ไฝฟ็”จใ™ใ‚‹ใ“ใจใŒใงใใพใ™ใ€‚
    
    ### ไพๅญ˜้–ขไฟ‚ใฎ่ฆไปถ
    
    ใ“ใ‚Œใ‚‰ใฏใƒชใ‚ฏใ‚จใ‚นใƒˆใฎ่ฆไปถ๏ผˆใƒ˜ใƒƒใƒ€ใฎใ‚ˆใ†ใชใ‚‚ใฎ๏ผ‰ใ‚„ใใฎไป–ใฎใ‚ตใƒ–ไพๅญ˜้–ขไฟ‚ใ‚’ๅฎฃ่จ€ใ™ใ‚‹ใ“ใจใŒใงใใพใ™:
    
    ```Python hl_lines="6 11"
    {!../../docs_src/dependencies/tutorial006.py!}
    ```
    
    ### ไพ‹ๅค–ใฎ็™บ็”Ÿ
    
    ใ“ใ‚Œใ‚‰ใฎไพๅญ˜้–ขไฟ‚ใฏ้€šๅธธใฎไพๅญ˜้–ขไฟ‚ใจๅŒใ˜ใ‚ˆใ†ใซใ€ไพ‹ๅค–ใ‚’`raise`็™บ็”Ÿใ•ใ›ใ‚‹ใ“ใจใŒใงใใพใ™:
    
    ```Python hl_lines="8 13"
    {!../../docs_src/dependencies/tutorial006.py!}
    ```
    
    ### ๆˆปใ‚Šๅ€ค
    
    ใใ—ใฆใ€ๅ€คใ‚’่ฟ”ใ™ใ“ใจใ‚‚่ฟ”ใ•ใชใ„ใ“ใจใ‚‚ใงใใพใ™ใŒใ€ๅ€คใฏไฝฟใ‚ใ‚Œใพใ›ใ‚“ใ€‚
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. docs/de/docs/advanced/async-tests.md

    โ”œโ”€โ”€ app
    โ”‚ย ย  โ”œโ”€โ”€ __init__.py
    โ”‚ย ย  โ”œโ”€โ”€ main.py
    โ”‚ย ย  โ””โ”€โ”€ test_main.py
    ```
    
    Die Datei `main.py` hรคtte als Inhalt:
    
    ```Python
    {!../../docs_src/async_tests/main.py!}
    ```
    
    Die Datei `test_main.py` hรคtte die Tests fรผr `main.py`, das kรถnnte jetzt so aussehen:
    
    ```Python
    {!../../docs_src/async_tests/test_main.py!}
    ```
    
    ## Es ausfรผhren
    
    Sie kรถnnen Ihre Tests wie gewohnt ausfรผhren mit:
    
    <div class="termy">
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:34:47 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/async-tests.md

    ```
    .
    โ”œโ”€โ”€ app
    โ”‚ย ย  โ”œโ”€โ”€ __init__.py
    โ”‚ย ย  โ”œโ”€โ”€ main.py
    โ”‚ย ย  โ””โ”€โ”€ test_main.py
    ```
    
    The file `main.py` would have:
    
    {* ../../docs_src/async_tests/main.py *}
    
    The file `test_main.py` would have the tests for `main.py`, it could look like this now:
    
    {* ../../docs_src/async_tests/test_main.py *}
    
    ## Run it
    
    You can run your tests as usual via:
    
    <div class="termy">
    
    ```console
    $ pytest
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:43:29 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_custom_response/test_tutorial008.py

    from pathlib import Path
    
    from fastapi.testclient import TestClient
    
    from docs_src.custom_response import tutorial008
    from docs_src.custom_response.tutorial008 import app
    
    client = TestClient(app)
    
    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial008.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
        response = client.get("/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Jul 09 18:06:12 UTC 2020
    - 487 bytes
    - Viewed (0)
  8. tests/test_tutorial/test_templates/test_tutorial001.py

            shutil.rmtree("./static")
        if os.path.isdir("./templates"):  # pragma: nocover
            shutil.rmtree("./templates")
        shutil.copytree("./docs_src/templates/templates/", "./templates")
        shutil.copytree("./docs_src/templates/static/", "./static")
        from docs_src.templates.tutorial001 import app
    
        client = TestClient(app)
        response = client.get("/items/foo")
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Jan 11 22:25:37 UTC 2024
    - 910 bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/dependencies/index.md

    โžก๏ธ ๐Ÿฅ‡ ๐ŸŽฏ ๐Ÿ”› ๐Ÿ”—.
    
    โšซ๏ธ ๐Ÿ”ข ๐Ÿ‘ˆ ๐Ÿ’ช โœŠ ๐ŸŒ ๐ŸŽ ๐Ÿ”ข ๐Ÿ‘ˆ *โžก ๐Ÿ› ๏ธ ๐Ÿ”ข* ๐Ÿ’ช โœŠ:
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.6๏ธโƒฃ &amp; ๐Ÿ”›
    
    ```Python hl_lines="8-11"
    {!> ../../docs_src/dependencies/tutorial001.py!}
    ```
    
    ////
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.1๏ธโƒฃ0๏ธโƒฃ &amp; ๐Ÿ”›
    
    ```Python hl_lines="6-7"
    {!> ../../docs_src/dependencies/tutorial001_py310.py!}
    ```
    
    ////
    
    ๐Ÿ‘ˆ โšซ๏ธ.
    
    **2๏ธโƒฃ โธ**.
    
    &amp; โšซ๏ธ โœ”๏ธ ๐ŸŽ ๐Ÿ’  &amp; ๐Ÿ“Š ๐Ÿ‘ˆ ๐ŸŒ ๐Ÿ‘† *โžก ๐Ÿ› ๏ธ ๐Ÿ”ข* โœ”๏ธ.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/security/get-current-user.md

    {!> ../../docs_src/security/tutorial002_py310.py!}
    ```
    
    ////
    
    ## ํ˜„์žฌ ์œ ์ € ์ฃผ์ž…ํ•˜๊ธฐ
    
    ์ด์ œ *๊ฒฝ๋กœ ์ž‘๋™*์—์„œ `get_current_user`์™€ ๋™์ผํ•œ `Depends`๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    
    //// tab | ํŒŒ์ด์ฌ 3.7 ์ด์ƒ
    
    ```Python hl_lines="31"
    {!> ../../docs_src/security/tutorial002.py!}
    ```
    
    ////
    
    //// tab | ํŒŒ์ด์ฌ 3.10 ์ด์ƒ
    
    ```Python hl_lines="29"
    {!> ../../docs_src/security/tutorial002_py310.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top