Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for copy (0.2 sec)

  1. .github/actions/comment-docs-preview-in-pr/Dockerfile

    FROM python:3.10
    
    COPY ./requirements.txt /app/requirements.txt
    
    RUN pip install -r /app/requirements.txt
    
    COPY ./app /app
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Jan 09 15:02:53 GMT 2024
    - 155 bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/body-updates.md

    Jetzt können Sie eine Kopie des existierenden Modells mittels `.model_copy()` erstellen, wobei Sie dem `update`-Parameter ein `dict` mit den zu ändernden Daten übergeben.
    
    !!! info
        In Pydantic v1 hieß diese Methode `.copy()`, in Pydantic v2 wurde sie deprecated (aber immer noch unterstützt) und in `.model_copy()` umbenannt.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:26:37 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  3. fastapi/dependencies/utils.py

        flat_dependant = Dependant(
            path_params=dependant.path_params.copy(),
            query_params=dependant.query_params.copy(),
            header_params=dependant.header_params.copy(),
            cookie_params=dependant.cookie_params.copy(),
            body_params=dependant.body_params.copy(),
            security_schemes=dependant.security_requirements.copy(),
            use_cache=dependant.use_cache,
            path=dependant.path,
        )
    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)
  4. 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 `uvicorn` with:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --reload
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  5. docs/em/docs/deployment/docker.md

    <details>
    <summary>📁 🎮 👶</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 Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 27.9K bytes
    - Viewed (0)
  6. docs_src/body_updates/tutorial002_py39.py

    async def update_item(item_id: str, item: Item):
        stored_item_data = items[item_id]
        stored_item_model = Item(**stored_item_data)
        update_data = item.dict(exclude_unset=True)
        updated_item = stored_item_model.copy(update=update_data)
        items[item_id] = jsonable_encoder(updated_item)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 1K bytes
    - Viewed (0)
  7. 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 Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 44.3K bytes
    - Viewed (0)
  8. 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 Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 4K bytes
    - Viewed (0)
  9. docs/em/docs/how-to/sql-databases-peewee.md

    , 👆 🔜 ⏲ ⚫️ ⏮️:
    
    ```Python hl_lines="3-4"
    async def reset_db_state():
        database.db.obj._state._state.set(db_state_default.copy())
        database.db.obj._state.reset()
    ```
    
    ### ✍ 👆 **FastAPI** *➡ 🛠️*
    
    🔜, 😒, 📥 🐩 **FastAPI** *➡ 🛠️* 📟.
    
    ```Python hl_lines="32-37  40-43  46-53  56-62  65-68  71-79"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 19.2K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/sql-databases.md

    * PostgreSQL
    * MySQL
    * SQLite
    * Oracle
    * Microsoft SQL Server, etc.
    
    In this example, we'll use **SQLite**, because it uses a single file and Python has integrated support. So, you can copy this example and run it as is.
    
    Later, for your production application, you might want to use a database server like **PostgreSQL**.
    
    !!! tip
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
Back to top