Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for type (0.13 sec)

  1. docs/en/docs/advanced/settings.md

    The same way as with Pydantic models, you declare class attributes with type annotations, and possibly default values.
    
    You can use all the same validation features and tools you use for Pydantic models, like different data types and additional validations with `Field()`.
    
    === "Pydantic v2"
    
        ```Python hl_lines="2  5-8  11"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/index.md

    ```
    
    </div>
    
    It is **HIGHLY encouraged** that you write or copy the code, edit it and run it locally.
    
    Using it in your editor is what really shows you the benefits of FastAPI, seeing how little code you have to write, all the type checks, autocompletion, etc.
    
    ---
    
    ## Install FastAPI
    
    The first step is to install FastAPI:
    
    <div class="termy">
    
    ```console
    $ pip install fastapi
    
    ---> 100%
    ```
    
    </div>
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  3. docs/en/docs/deployment/docker.md

    6. Set the **command** to use `fastapi run`, which uses Uvicorn underneath.
    
        `CMD` takes a list of strings, each of these strings is what you would type in the command line separated by spaces.
    
        This command will be run from the **current working directory**, the same `/code` directory you set above with `WORKDIR /code`.
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 34K bytes
    - Viewed (0)
Back to top