Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 72 for imported4 (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/fr/docs/tutorial/bigger-applications.md

    Voyons maintenant le module `app/main.py`.
    
    C'est ici que vous importez et utilisez la classe `FastAPI`.
    
    Ce sera le fichier principal de votre application qui reliera tout ensemble.
    
    Et comme la plupart de votre logique vivra désormais dans son propre module, le fichier principal sera assez simple.
    
    ### Importer `FastAPI` { #import-fastapi }
    
    Vous importez et créez une classe `FastAPI` comme d'habitude.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 21.4K bytes
    - Click Count (0)
  2. docs/fr/docs/tutorial/background-tasks.md

    ## Utiliser `BackgroundTasks` { #using-backgroundtasks }
    
    Pour commencer, importez `BackgroundTasks` et définissez un paramètre dans votre *fonction de chemin d'accès* avec `BackgroundTasks` comme type déclaré.
    
    {* ../../docs_src/background_tasks/tutorial001_py310.py hl[1,13] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 5.5K bytes
    - Click Count (0)
  3. docs/fr/docs/advanced/wsgi.md

    ## Utiliser `WSGIMiddleware` { #using-wsgimiddleware }
    
    /// info
    
    Cela nécessite l'installation de `a2wsgi`, par exemple avec `pip install a2wsgi`.
    
    ///
    
    Vous devez importer `WSGIMiddleware` depuis `a2wsgi`.
    
    Ensuite, enveloppez l'application WSGI (par ex. Flask) avec le middleware.
    
    Puis, montez-la sous un chemin.
    
    {* ../../docs_src/wsgi/tutorial001_py310.py hl[1,3,23] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 1.6K bytes
    - Click Count (0)
  4. docs/fr/docs/tutorial/path-params-numeric-validations.md

    ## Importer `Path` { #import-path }
    
    Tout d'abord, importez `Path` de `fastapi`, et importez `Annotated` :
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[1,3] *}
    
    /// info
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  5. docs/fr/docs/tutorial/request-files.md

    ```console
    $ pip install python-multipart
    ```
    
    C'est parce que les fichiers téléversés sont envoyés en « données de formulaire ».
    
    ///
    
    ## Importer `File` { #import-file }
    
    Importez `File` et `UploadFile` depuis `fastapi` :
    
    {* ../../docs_src/request_files/tutorial001_an_py310.py hl[3] *}
    
    ## Définir des paramètres `File` { #define-file-parameters }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  6. docs/pt/docs/tutorial/background-tasks.md

    ## Detalhes técnicos { #technical-details }
    
    A classe `BackgroundTasks` vem diretamente de [`starlette.background`](https://www.starlette.dev/background/).
    
    Ela é importada/incluída diretamente no FastAPI para que você possa importá-la de `fastapi` e evitar importar acidentalmente a alternativa `BackgroundTask` (sem o `s` no final) de `starlette.background`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  7. docs/fr/docs/tutorial/handling-errors.md

    ## Utiliser `HTTPException` { #use-httpexception }
    
    Pour renvoyer au client des réponses HTTP avec des erreurs, vous utilisez `HTTPException`.
    
    ### Importer `HTTPException` { #import-httpexception }
    
    {* ../../docs_src/handling_errors/tutorial001_py310.py hl[1] *}
    
    ### Lever une `HTTPException` dans votre code { #raise-an-httpexception-in-your-code }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 10K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/bigger-applications.md

    ### Importe o `FastAPI` { #import-fastapi }
    
    Você importa e cria uma classe `FastAPI` normalmente.
    
    E podemos até declarar [dependências globais](dependencies/global-dependencies.md) que serão combinadas com as dependências para cada `APIRouter`:
    
    {* ../../docs_src/bigger_applications/app_an_py310/main.py hl[1,3,7] title["app/main.py"] *}
    
    ### Importe o `APIRouter` { #import-the-apirouter }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 20.3K bytes
    - Click Count (0)
  9. docs/fr/docs/tutorial/path-params.md

    ### Créer une classe `Enum` { #create-an-enum-class }
    
    Importez `Enum` et créez une sous-classe qui hérite de `str` et de `Enum`.
    
    En héritant de `str`, la documentation de l'API saura que les valeurs doivent être de type `string` et pourra donc s'afficher correctement.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  10. docs/pt/docs/tutorial/server-sent-events.md

    ///
    
    ## Transmitir SSE com FastAPI { #stream-sse-with-fastapi }
    
    Para transmitir SSE com FastAPI, use `yield` na sua função de operação de rota e defina `response_class=EventSourceResponse`.
    
    Importe `EventSourceResponse` de `fastapi.sse`:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    Cada item produzido é codificado como JSON e enviado no campo `data:` de um evento SSE.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:13 GMT 2026
    - 4.9K bytes
    - Click Count (0)
Back to Top