Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 15 for AsyncIO (0.05 seconds)

  1. fastapi/.agents/skills/fastapi/references/other-tools.md

    ## ty
    
    If ty is available, use it to check types.
    
    ## Asyncer
    
    When needing to run blocking code inside of async functions, or async code inside of blocking functions, suggest using Asyncer.
    
    Prefer it over AnyIO or asyncio.
    
    Install:
    
    ```bash
    uv add asyncer
    ```
    
    Run blocking sync code inside of async with `asyncify()`:
    
    ```python
    from asyncer import asyncify
    from fastapi import FastAPI
    
    app = FastAPI()
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 1.5K bytes
    - Click Count (0)
  2. docs/ru/docs/deployment/manually.md

    /// tip | Совет
    
    С добавлением `standard` Uvicorn установит и будет использовать ряд рекомендованных дополнительных зависимостей.
    
    В их числе `uvloop` — высокопроизводительная замена `asyncio`, дающая серьёзный прирост производительности при параллельной работе.
    
    Если вы устанавливаете FastAPI, например так: `pip install "fastapi[standard]"`, вы уже получаете и `uvicorn[standard]`.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  3. tests/test_sse.py

    import asyncio
    import time
    from collections.abc import AsyncIterable, Iterable
    
    import fastapi.routing
    import pytest
    from fastapi import APIRouter, FastAPI
    from fastapi.responses import EventSourceResponse
    from fastapi.sse import ServerSentEvent
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
    
    
    items = [
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 9.8K bytes
    - Click Count (0)
  4. docs/pt/docs/deployment/manually.md

    /// tip | Dica
    
    Adicionando o `standard`, o Uvicorn instalará e usará algumas dependências extras recomendadas.
    
    Isso inclui o `uvloop`, a substituição de alto desempenho para `asyncio`, que fornece um grande aumento de desempenho de concorrência.
    
    Quando você instala o FastAPI com algo como `pip install "fastapi[standard]"`, você já obtém `uvicorn[standard]` também.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  5. docs/uk/docs/deployment/manually.md

    /// tip | Порада
    
    Додавши `standard`, Uvicorn встановить і використовуватиме деякі рекомендовані додаткові залежності.
    
    Зокрема `uvloop` - високопродуктивну заміну «без змін у коді» для `asyncio`, що суттєво підвищує рівночасність і продуктивність.
    
    Якщо ви встановлюєте FastAPI через `pip install "fastapi[standard]"`, ви вже отримаєте і `uvicorn[standard]`.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 9.1K bytes
    - Click Count (0)
  6. fastapi/dependencies/models.py

    from fastapi.security.base import SecurityBase
    from fastapi.types import DependencyCacheKey
    
    if sys.version_info >= (3, 13):  # pragma: no cover
        from inspect import iscoroutinefunction
    else:  # pragma: no cover
        from asyncio import iscoroutinefunction
    
    
    def _unwrapped_call(call: Callable[..., Any] | None) -> Any:
        if call is None:
            return call  # pragma: no cover
        unwrapped = inspect.unwrap(_impartial(call))
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  7. docs/de/docs/deployment/manually.md

    /// tip | Tipp
    
    Durch das Hinzufügen von `standard` installiert und verwendet Uvicorn einige empfohlene zusätzliche Abhängigkeiten.
    
    Dazu gehört `uvloop`, der hochperformante Drop-in-Ersatz für `asyncio`, der den großen Nebenläufigkeits-Leistungsschub bietet.
    
    Wenn Sie FastAPI mit etwas wie `pip install "fastapi[standard]"` installieren, erhalten Sie auch `uvicorn[standard]`.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  8. docs/tr/docs/deployment/manually.md

    ```
    
    </div>
    
    Benzer bir süreç, diğer ASGI server programlarının tamamı için de geçerlidir.
    
    /// tip | İpucu
    
    `standard` eklediğinizde Uvicorn, önerilen bazı ek bağımlılıkları kurar ve kullanır.
    
    Bunlara, `asyncio` için yüksek performanslı bir drop-in replacement olan ve concurrency performansını ciddi şekilde artıran `uvloop` da dahildir.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  9. docs/ko/docs/deployment/manually.md

    ```console
    $ pip install "uvicorn[standard]"
    
    ---> 100%
    ```
    
    </div>
    
    다른 어떤 ASGI 서버 프로그램도 비슷한 과정이 적용됩니다.
    
    /// tip | 팁
    
    `standard`를 추가하면 Uvicorn이 권장되는 추가 의존성 몇 가지를 설치하고 사용합니다.
    
    여기에는 `uvloop`가 포함되며, 이는 `asyncio`를 고성능으로 대체할 수 있는 드롭인 대체재로, 큰 동시성 성능 향상을 제공합니다.
    
    `pip install "fastapi[standard]"` 같은 방식으로 FastAPI를 설치하면 `uvicorn[standard]`도 함께 설치됩니다.
    
    ///
    
    ## 서버 프로그램 실행하기 { #run-the-server-program }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 7.4K bytes
    - Click Count (0)
  10. docs/en/docs/deployment/manually.md

    /// tip
    
    By adding the `standard`, Uvicorn will install and use some recommended extra dependencies.
    
    That including `uvloop`, the high-performance drop-in replacement for `asyncio`, that provides the big concurrency performance boost.
    
    When you install FastAPI with something like `pip install "fastapi[standard]"` you already get `uvicorn[standard]` as well.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.7K bytes
    - Click Count (0)
Back to Top