Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for something (0.21 sec)

  1. docs/en/docs/async.md

    Asynchronous code just means that the language 💬 has a way to tell the computer / program 🤖 that at some point in the code, it 🤖 will have to wait for *something else* to finish somewhere else. Let's say that *something else* is called "slow-file" 📝.
    
    So, during that time, the computer can go and do some other work, while "slow-file" 📝 finishes.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/events.md

    ### Async Context Manager
    
    If you check, the function is decorated with an `@asynccontextmanager`.
    
    That converts the function into something called an "**async context manager**".
    
    ```Python hl_lines="1  13"
    {!../../../docs_src/events/tutorial003.py!}
    ```
    
    A **context manager** in Python is something that you can use in a `with` statement, for example, `open()` can be used as a context manager:
    
    ```Python
    with open("file.txt") as file:
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  3. docs/en/docs/deployment/concepts.md

    We also saw that HTTPS is normally provided by a component **external** to your application server, a **TLS Termination Proxy**.
    
    And there has to be something in charge of **renewing the HTTPS certificates**, it could be the same component or it could be something different.
    
    ### Example Tools for HTTPS
    
    Some of the tools you could use as a TLS Termination Proxy are:
    
    * Traefik
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/dependencies/classes-as-dependencies.md

    Ein „**Callable**“ in Python ist etwas, das wie eine Funktion aufgerufen werden kann („to call“).
    
    Wenn Sie also ein Objekt `something` haben (das möglicherweise _keine_ Funktion ist) und Sie es wie folgt aufrufen (ausführen) können:
    
    ```Python
    something()
    ```
    
    oder
    
    ```Python
    something(some_argument, some_keyword_argument="foo")
    ```
    
    dann ist das ein „Callable“ (ein „Aufrufbares“).
    
    ## Klassen als Abhängigkeiten
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:01:58 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/behind-a-proxy.md

        "servers": [
            {
                "url": "/api/v1"
            }
        ],
        "paths": {
                // More stuff here
        }
    }
    ```
    
    In this example, the "Proxy" could be something like **Traefik**. And the server would be something like **Uvicorn**, running your FastAPI application.
    
    ### Providing the `root_path`
    
    To achieve this, you can use the command line option `--root-path` like:
    
    <div class="termy">
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (2)
  6. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    A "**callable**" in Python is anything that Python can "call" like a function.
    
    So, if you have an object `something` (that might _not_ be a function) and you can "call" it (execute it) like:
    
    ```Python
    something()
    ```
    
    or
    
    ```Python
    something(some_argument, some_keyword_argument="foo")
    ```
    
    then it is a "callable".
    
    ## Classes as dependencies
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  7. docs/en/docs/how-to/async-sql-encode-databases.md

    ### About `{**note.dict(), "id": last_record_id}`
    
    `note` is a Pydantic `Note` object.
    
    `note.dict()` returns a `dict` with its data, something like:
    
    ```Python
    {
        "text": "Some note",
        "completed": False,
    }
    ```
    
    but it doesn't have the `id` field.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/openapi-callbacks.md

    !!! tip
        The actual callback is just an HTTP request.
    
        When implementing the callback yourself, you could use something like <a href="https://www.python-httpx.org" class="external-link" target="_blank">HTTPX</a> or <a href="https://requests.readthedocs.io/" class="external-link" target="_blank">Requests</a>.
    
    ## Write the callback documentation code
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Supplier.java

    /**
     * A class that can supply objects of a single type; a pre-Java-8 version of {@link
     * java.util.function.Supplier java.util.function.Supplier}. Semantically, this could be a factory,
     * generator, builder, closure, or something else entirely. No guarantees are implied by this
     * interface.
     *
     * <p>The {@link Suppliers} class provides common suppliers and related utilities.
     *
     * <p>See the Guava User Guide article on <a href=
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  10. docs/em/docs/python-types.md

    {!../../../docs_src/python_types/tutorial009.py!}
    ```
    
    ⚙️ `Optional[str]` ↩️ `str` 🔜 ➡️ 👨‍🎨 ℹ 👆 🔍 ❌ 🌐❔ 👆 💪 🤔 👈 💲 🕧 `str`, 🕐❔ ⚫️ 💪 🤙 `None` 💁‍♂️.
    
    `Optional[Something]` 🤙 ⌨ `Union[Something, None]`, 👫 🌓.
    
    👉 ⛓ 👈 🐍 3️⃣.1️⃣0️⃣, 👆 💪 ⚙️ `Something | None`:
    
    === "🐍 3️⃣.6️⃣ &amp; 🔛"
    
        ```Python hl_lines="1  4"
        {!> ../../../docs_src/python_types/tutorial009.py!}
        ```
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
Back to top