Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 61 for copy (0.14 sec)

  1. docs/de/docs/deployment/docker.md

    <Details>
    <summary>Dockerfile-Vorschau ๐Ÿ‘€</summary>
    
    ```Dockerfile
    FROM python:3.9
    
    WORKDIR /code
    
    COPY ./requirements.txt /code/requirements.txt
    
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    COPY ./app /code/app
    
    CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:19:17 GMT 2024
    - 38.9K bytes
    - Viewed (0)
  2. docs/pt/docs/deployment/docker.md

    
    <details>
    <summary>Visualizaรงรฃo do Dockerfile ๐Ÿ‘€</summary>
    
    ```Dockerfile
    FROM python:3.9
    
    WORKDIR /code
    
    COPY ./requirements.txt /code/requirements.txt
    
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    COPY ./app /code/app
    
    CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]
    
    # If running behind a proxy like Nginx or Traefik add --proxy-headers
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  3. docs/ja/docs/deployment/docker.md

    <details>
    <summary>Dockerfile ใƒ—ใƒฌใƒ“ใƒฅใƒผ ๐Ÿ‘€</summary>
    
    ```Dockerfile
    FROM python:3.9
    
    WORKDIR /code
    
    COPY ./requirements.txt /code/requirements.txt
    
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    COPY ./app /code/app
    
    CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]
    
    # If running behind a proxy like Nginx or Traefik add --proxy-headers
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 44.3K bytes
    - Viewed (0)
  4. fastapi/_compat.py

    from collections import deque
    from copy import copy
    from dataclasses import dataclass, is_dataclass
    from enum import Enum
    from typing import (
        Any,
        Callable,
        Deque,
        Dict,
        FrozenSet,
        List,
        Mapping,
        Sequence,
        Set,
        Tuple,
        Type,
        Union,
    )
    
    from fastapi.exceptions import RequestErrorModel
    from fastapi.types import IncEx, ModelNameMap, UnionType
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/index.md

    So you can come back and see exactly what you need.
    
    ## Run the code
    
    All the code blocks can be copied and used directly (they are actually tested Python files).
    
    To run any of the examples, copy the code to a file `main.py`, and start `fastapi dev` with:
    
    <div class="termy">
    
    ```console
    $ <font color="#4E9A06">fastapi</font> dev <u style="text-decoration-style:single">main.py</u>
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  6. docs_src/security/tutorial004_py310.py

            return False
        if not verify_password(password, user.hashed_password):
            return False
        return user
    
    
    def create_access_token(data: dict, expires_delta: timedelta | None = None):
        to_encode = data.copy()
        if expires_delta:
            expire = datetime.now(timezone.utc) + expires_delta
        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
        to_encode.update({"exp": expire})
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 4K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/body-updates.md

        ```Python hl_lines="32"
        {!> ../../../docs_src/body_updates/tutorial002_py310.py!}
        ```
    
    ### โš™๏ธ Pydantic `update` ๐Ÿ”ข
    
    ๐Ÿ”œ, ๐Ÿ‘† ๐Ÿ’ช โœ ๐Ÿ“ โ™ป ๐Ÿท โš™๏ธ `.copy()`, &amp; ๐Ÿšถโ€โ™€๏ธ `update` ๐Ÿ”ข โฎ๏ธ `dict` โš— ๐Ÿ’ฝ โ„น.
    
    ๐Ÿ’– `stored_item_model.copy(update=update_data)`:
    
    === "๐Ÿ 3๏ธโƒฃ.6๏ธโƒฃ &amp; ๐Ÿ”›"
    
        ```Python hl_lines="35"
        {!> ../../../docs_src/body_updates/tutorial002.py!}
        ```
    
    === "๐Ÿ 3๏ธโƒฃ.9๏ธโƒฃ &amp; ๐Ÿ”›"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  8. docs/ja/docs/tutorial/body-updates.md

    ใ“ใ‚Œใ‚’ไฝฟใ†ใ“ใจใงใ€ใƒ‡ใƒ•ใ‚ฉใƒซใƒˆๅ€คใ‚’็œ็•ฅใ—ใฆใ€่จญๅฎšใ•ใ‚ŒใŸ๏ผˆใƒชใ‚ฏใ‚จใ‚นใƒˆใง้€ใ‚‰ใ‚ŒใŸ๏ผ‰ใƒ‡ใƒผใ‚ฟใฎใฟใ‚’ๅซใ‚€`dict`ใ‚’็”Ÿๆˆใ™ใ‚‹ใ“ใจใŒใงใใพใ™:
    
    ```Python hl_lines="34"
    {!../../../docs_src/body_updates/tutorial002.py!}
    ```
    
    ### Pydanticใฎ`update`ใƒ‘ใƒฉใƒกใƒผใ‚ฟ
    
    ใ“ใ“ใงใ€`.copy()`ใ‚’็”จใ„ใฆๆ—ขๅญ˜ใฎใƒขใƒ‡ใƒซใฎใ‚ณใƒ”ใƒผใ‚’ไฝœๆˆใ—ใ€`update`ใƒ‘ใƒฉใƒกใƒผใ‚ฟใซๆ›ดๆ–ฐใ™ใ‚‹ใƒ‡ใƒผใ‚ฟใ‚’ๅซใ‚€`dict`ใ‚’ๆธกใ™ใ“ใจใŒใงใใพใ™ใ€‚
    
    `stored_item_model.copy(update=update_data)`ใฎใ‚ˆใ†ใซ:
    
    ```Python hl_lines="35"
    {!../../../docs_src/body_updates/tutorial002.py!}
    ```
    
    ### ้ƒจๅˆ†็š„ๆ›ดๆ–ฐใฎใพใจใ‚
    
    ใพใจใ‚ใ‚‹ใจใ€้ƒจๅˆ†็š„ใชๆ›ดๆ–ฐใ‚’้ฉ็”จใ™ใ‚‹ใซใฏใ€ๆฌกใฎใ‚ˆใ†ใซใ—ใพใ™:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  9. docs_src/security/tutorial004_an_py39.py

        if not verify_password(password, user.hashed_password):
            return False
        return user
    
    
    def create_access_token(data: dict, expires_delta: Union[timedelta, None] = None):
        to_encode = data.copy()
        if expires_delta:
            expire = datetime.now(timezone.utc) + expires_delta
        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
        to_encode.update({"exp": expire})
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_extra_data_types/test_tutorial001_an.py

        data = {
            "start_datetime": "2018-12-22T14:00:00+00:00",
            "end_datetime": "2018-12-24T15:00:00+00:00",
            "repeat_at": "15:30:00",
            "process_after": 300,
        }
        expected_response = data.copy()
        expected_response.update(
            {
                "start_process": "2018-12-22T14:05:00+00:00",
                "duration": 176_100,
                "item_id": item_id,
            }
        )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Apr 19 00:11:40 GMT 2024
    - 6.8K bytes
    - Viewed (0)
Back to top