Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Assembler (0.15 sec)

  1. docs/fr/docs/tutorial/first-steps.md

    # Démarrage
    
    Le fichier **FastAPI** le plus simple possible pourrait ressembler à cela  :
    
    ```Python
    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Copiez ce code dans un fichier nommé `main.py`.
    
    Démarrez le serveur :
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --reload
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Sep 27 20:52:31 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  2. docs/fr/docs/alternatives.md

    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    En contrepartie l'API _des opérations de chemin_ de FastAPI pourrait ressembler à ceci :
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
        return {"message": "Hello World"}
    ```
    
    Notez les similitudes entre `requests.get(...)` et `@app.get(...)`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 27.5K bytes
    - Viewed (0)
Back to top