Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1031 - 1040 of 1,102 for DEF (0.01 seconds)

  1. docs/fr/docs/tutorial/server-sent-events.md

    ///
    
    ### Fonctions de chemin d'accès non async { #non-async-path-operation-functions }
    
    Vous pouvez aussi utiliser des fonctions `def` normales (sans `async`), et utiliser `yield` de la même façon.
    
    FastAPI s’assure qu’elles s’exécutent correctement pour ne pas bloquer la boucle d’événements.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:33:45 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  2. docs/pt/docs/tutorial/dependencies/classes-as-dependencies.md

    ## Classes como dependências { #classes-as-dependencies_1 }
    
    Você deve ter percebido que para criar um instância de uma classe em Python, a mesma sintaxe é utilizada.
    
    Por exemplo:
    
    ```Python
    class Cat:
        def __init__(self, name: str):
            self.name = name
    
    
    fluffy = Cat(name="Mr Fluffy")
    ```
    
    Nesse caso,  `fluffy` é uma instância da classe `Cat`.
    
    E para criar `fluffy`, você está "chamando" `Cat`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:48:53 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  3. docs/uk/docs/tutorial/request-files.md

    Наприклад, всередині `async` *функції операції шляху* ви можете отримати вміст за допомогою:
    
    ```Python
    contents = await myfile.read()
    ```
    
    Якщо ви знаходитесь у звичайній `def` *функції операції шляху*, ви можете отримати доступ до `UploadFile.file` безпосередньо, наприклад:
    
    ```Python
    contents = myfile.file.read()
    ```
    
    /// note | Технічні деталі `async`
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 11K bytes
    - Click Count (0)
  4. docs/uk/docs/tutorial/server-sent-events.md

    ///
    
    ### Не-async *функції операцій шляху* { #non-async-path-operation-functions }
    
    Ви також можете використовувати звичайні функції `def` (без `async`) і використовувати `yield` так само.
    
    FastAPI подбає про коректне виконання, щоб воно не блокувало цикл подій.
    
    Оскільки в цьому випадку функція не async, коректним типом повернення буде `Iterable[Item]`:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:25:54 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  5. docs/pt/docs/advanced/settings.md

    ```Python
    Settings()
    ```
    
    um novo objeto `Settings` seria criado e, na criação, ele leria o arquivo `.env` novamente.
    
    Se a função de dependência fosse assim:
    
    ```Python
    def get_settings():
        return Settings()
    ```
    
    criaríamos esse objeto para cada requisição e leríamos o arquivo `.env` para cada requisição. ⚠️
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  6. docs/de/docs/tutorial/stream-json-lines.md

    ///
    
    ### Nicht-async *Pfadoperation-Funktionen* { #non-async-path-operation-functions }
    
    Sie können auch normale `def`-Funktionen (ohne `async`) verwenden und `yield` auf die gleiche Weise einsetzen.
    
    FastAPI stellt sicher, dass sie korrekt ausgeführt werden, sodass der Event Loop nicht blockiert wird.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:48:21 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  7. docs/pt/docs/tutorial/request-files.md

    Por exemplo, dentro de uma função de *operação de rota* `assíncrona`, você pode obter o conteúdo com:
    
    ```Python
    contents = await myfile.read()
    ```
    
    Se você estiver dentro de uma função de *operação de rota* normal `def`, você pode acessar o `UploadFile.file` diretamente, por exemplo:
    
    ```Python
    contents = myfile.file.read()
    ```
    
    /// note | Detalhes Técnicos do `async`
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  8. docs/fr/docs/tutorial/stream-json-lines.md

    ///
    
    ### Fonctions de chemin d'accès non asynchrones { #non-async-path-operation-functions }
    
    Vous pouvez aussi utiliser des fonctions `def` classiques (sans `async`), et utiliser `yield` de la même manière.
    
    FastAPI s'assure qu'elle s'exécute correctement afin de ne pas bloquer la boucle d'événements.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:33:45 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  9. docs/de/docs/tutorial/request-files.md

    Zum Beispiel können Sie innerhalb einer `async` *Pfadoperation-Funktion* den Inhalt wie folgt auslesen:
    
    ```Python
    contents = await myfile.read()
    ```
    
    Wenn Sie sich innerhalb einer normalen `def`-*Pfadoperation-Funktion* befinden, können Sie direkt auf `UploadFile.file` zugreifen, zum Beispiel:
    
    ```Python
    contents = myfile.file.read()
    ```
    
    /// note | Technische Details zu `async`
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/tutorial/request-files.md

        * 當你已經執行過 `await myfile.read()`,之後需要再次讀取內容時特別有用。
    * `close()`:關閉檔案。
    
    由於這些都是 `async` 方法,你需要以 await 呼叫它們。
    
    例如,在 `async` 的路徑操作函式中可這樣讀取內容:
    
    ```Python
    contents = await myfile.read()
    ```
    
    若是在一般的 `def` 路徑操作函式中,你可以直接存取 `UploadFile.file`,例如:
    
    ```Python
    contents = myfile.file.read()
    ```
    
    /// note | `async` 技術細節
    
    當你使用這些 `async` 方法時,**FastAPI** 會在執行緒池中執行對應的檔案方法並等待結果。
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.6K bytes
    - Click Count (0)
Back to Top