Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 574 for Nath (0.24 sec)

  1. docs/em/docs/tutorial/path-params.md

    ### โžก ๐Ÿ”Œ
    
    โš™๏ธ ๐ŸŽ› ๐Ÿ”— โšช๏ธโžก๏ธ ๐Ÿ’ƒ ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“ฃ *โžก ๐Ÿ”ข* โš— *โžก* โš™๏ธ ๐Ÿ“› ๐Ÿ’–:
    
    ```
    /files/{file_path:path}
    ```
    
    ๐Ÿ‘‰ ๐Ÿ’ผ, ๐Ÿ“› ๐Ÿ”ข `file_path`, & ๐Ÿ ๐Ÿ•, `:path`, ๐Ÿ’ฌ โšซ๏ธ ๐Ÿ‘ˆ ๐Ÿ”ข ๐Ÿ”œ ๐Ÿ ๐Ÿ™† *โžก*.
    
    , ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ โšซ๏ธ โฎ๏ธ:
    
    ```Python hl_lines="6"
    {!../../../docs_src/path_params/tutorial004.py!}
    ```
    
    !!! tip
        ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ’ช ๐Ÿ”ข ๐Ÿ”Œ `/home/johndoe/myfile.txt`, โฎ๏ธ ๐Ÿ ๐Ÿ”ช (`/`).
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/path-operation-configuration.md

        ```Python hl_lines="3  17"
        {!> ../../../docs_src/path_operation_configuration/tutorial001.py!}
        ```
    
    === "๐Ÿ 3๏ธโƒฃ.9๏ธโƒฃ & ๐Ÿ”›"
    
        ```Python hl_lines="3  17"
        {!> ../../../docs_src/path_operation_configuration/tutorial001_py39.py!}
        ```
    
    === "๐Ÿ 3๏ธโƒฃ.1๏ธโƒฃ0๏ธโƒฃ & ๐Ÿ”›"
    
        ```Python hl_lines="1  15"
        {!> ../../../docs_src/path_operation_configuration/tutorial001_py310.py!}
        ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 5.3K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/path-params-numeric-validations.md

    # Path Parameters and Numeric Validations
    
    In the same way that you can declare more validations and metadata for query parameters with `Query`, you can declare the same type of validations and metadata for path parameters with `Path`.
    
    ## Import Path
    
    First, import `Path` from `fastapi`, and import `Annotated`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="1  3"
        {!> ../../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py!}
        ```
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/path-params-numeric-validations.md

    ใ‚ฏใ‚จใƒชใƒ‘ใƒฉใƒกใƒผใ‚ฟใซๅฏพใ—ใฆ`Query`ใงใ‚ˆใ‚Šๅคšใใฎใƒใƒชใƒ‡ใƒผใ‚ทใƒงใƒณใจใƒกใ‚ฟใƒ‡ใƒผใ‚ฟใ‚’ๅฎฃ่จ€ใงใใ‚‹ใฎใจๅŒใ˜ใ‚ˆใ†ใซใ€ใƒ‘ใ‚นใƒ‘ใƒฉใƒกใƒผใ‚ฟใซๅฏพใ—ใฆใ‚‚`Path`ใงๅŒใ˜็จฎ้กžใฎใƒใƒชใƒ‡ใƒผใ‚ทใƒงใƒณใจใƒกใ‚ฟใƒ‡ใƒผใ‚ฟใ‚’ๅฎฃ่จ€ใ™ใ‚‹ใ“ใจใŒใงใใพใ™ใ€‚
    
    ## Pathใฎใ‚คใƒณใƒใƒผใƒˆ
    
    ใพใšๅˆใ‚ใซใ€`fastapi`ใ‹ใ‚‰`Path`ใ‚’ใ‚คใƒณใƒใƒผใƒˆใ—ใพใ™:
    
    ```Python hl_lines="1"
    {!../../../docs_src/path_params_numeric_validations/tutorial001.py!}
    ```
    
    ## ใƒกใ‚ฟใƒ‡ใƒผใ‚ฟใฎๅฎฃ่จ€
    
    ใƒ‘ใƒฉใƒกใƒผใ‚ฟใฏ`Query`ใจๅŒใ˜ใ‚‚ใฎใ‚’ๅฎฃ่จ€ใ™ใ‚‹ใ“ใจใŒใงใใพใ™ใ€‚
    
    ไพ‹ใˆใฐใ€ใƒ‘ใ‚นใƒ‘ใƒฉใƒกใƒผใ‚ฟ`item_id`ใซๅฏพใ—ใฆ`title`ใฎใƒกใ‚ฟใƒ‡ใƒผใ‚ฟใ‚’ๅฎฃ่จ€ใ™ใ‚‹ใซใฏไปฅไธ‹ใฎใ‚ˆใ†ใซใ—ใพใ™:
    
    ```Python hl_lines="8"
    {!../../../docs_src/path_params_numeric_validations/tutorial001.py!}
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 15 15:46:32 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  5. tests/main.py

    @app.get("/path/param-lt/{item_id}")
    def get_path_param_lt(item_id: float = Path(lt=3)):
        return item_id
    
    
    @app.get("/path/param-lt0/{item_id}")
    def get_path_param_lt0(item_id: float = Path(lt=0)):
        return item_id
    
    
    @app.get("/path/param-le/{item_id}")
    def get_path_param_le(item_id: float = Path(le=3)):
        return item_id
    
    
    @app.get("/path/param-lt-gt/{item_id}")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  6. scripts/docs.py

        """
        new_path: Path = Path("docs") / lang
        if new_path.exists():
            typer.echo(f"The language was already created: {lang}")
            raise typer.Abort()
        new_path.mkdir()
        new_config_path: Path = Path(new_path) / mkdocs_name
        new_config_path.write_text("INHERIT: ../en/mkdocs.yml\n", encoding="utf-8")
        new_config_docs_path: Path = new_path / "docs"
        new_config_docs_path.mkdir()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
  7. tests/test_tutorial/test_custom_response/test_tutorial009.py

    from pathlib import Path
    
    from fastapi.testclient import TestClient
    
    from docs_src.custom_response import tutorial009
    from docs_src.custom_response.tutorial009 import app
    
    client = TestClient(app)
    
    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial009.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
        response = client.get("/")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jul 03 19:51:28 GMT 2021
    - 487 bytes
    - Viewed (0)
  8. tests/test_tutorial/test_custom_response/test_tutorial009b.py

    from pathlib import Path
    
    from fastapi.testclient import TestClient
    
    from docs_src.custom_response import tutorial009b
    from docs_src.custom_response.tutorial009b import app
    
    client = TestClient(app)
    
    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial009b.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jul 03 19:51:28 GMT 2021
    - 490 bytes
    - Viewed (0)
  9. fastapi/dependencies/utils.py

        assert callable(
            depends.dependency
        ), "A parameter-less dependency must have a callable dependency"
        return get_sub_dependant(depends=depends, dependency=depends.dependency, path=path)
    
    
    def get_sub_dependant(
        *,
        depends: params.Depends,
        dependency: Callable[..., Any],
        path: str,
        name: Optional[str] = None,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  10. docs/em/docs/advanced/behind-a-proxy.md

    ```JSON
    {
        "message": "Hello World",
        "root_path": "/api/v1"
    }
    ```
    
    ### โš’ `root_path` FastAPI ๐Ÿ“ฑ
    
    ๐Ÿ‘, ๐Ÿšฅ ๐Ÿ‘† ๐Ÿšซ โœ”๏ธ ๐ŸŒŒ ๐Ÿšš ๐Ÿ“‹ โธ ๐ŸŽ› ๐Ÿ’– `--root-path` โš–๏ธ ๐ŸŒ“, ๐Ÿ‘† ๐Ÿ’ช โš’ `root_path` ๐Ÿ”ข ๐Ÿ•โ” ๐Ÿ— ๐Ÿ‘† FastAPI ๐Ÿ“ฑ:
    
    ```Python hl_lines="3"
    {!../../../docs_src/behind_a_proxy/tutorial002.py!}
    ```
    
    ๐Ÿšถโ€โ™€๏ธ `root_path` `FastAPI` ๐Ÿ”œ ๐ŸŒ“ ๐Ÿšถโ€โ™€๏ธ `--root-path` ๐Ÿ“‹ โธ ๐ŸŽ› Uvicorn โš–๏ธ Hypercorn.
    
    ### ๐Ÿ”ƒ `root_path`
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.1K bytes
    - Viewed (0)
Back to top