Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 91 for classes (0.14 sec)

  1. docs/pt/docs/python-types.md

    * `List`
    * `Tuple`
    * `Set`
    * `Dict`
    * `Opcional`
    * ...e outros.
    
    são chamados **tipos genéricos** ou **genéricos**.
    
    ### Classes como tipos
    
    Você também pode declarar uma classe como o tipo de uma variável.
    
    Digamos que você tenha uma classe `Person`, com um nome:
    
    ```Python hl_lines="1 2 3"
    {!../../../docs_src/python_types/tutorial010.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  2. docs/fr/docs/python-types.md

    * `List`
    * `Tuple`
    * `Set`
    * `Dict`
    * `Optional`
    * ...et d'autres.
    
    sont appelés des **types génériques** ou **Generics**.
    
    ### Classes en tant que types
    
    Vous pouvez aussi déclarer une classe comme type d'une variable.
    
    Disons que vous avez une classe `Person`, avec une variable `name` :
    
    ```Python hl_lines="1-3"
    {!../../../docs_src/python_types/tutorial010.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  3. docs/pt/docs/features.md

    ## Recursos do Starlette
    
    **FastAPI** é totalmente compatível com (e baseado no) <a href="https://www.starlette.io/" class="external-link" target="_blank"><strong>Starlette</strong></a>. Então, qualquer código adicional Starlette que você tiver, também funcionará.
    
    `FastAPI` é na verdade uma sub-classe do `Starlette`. Então, se você já conhece ou usa Starlette, a maioria das funcionalidades se comportará da mesma forma.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  4. docs/en/mkdocs.yml

        - tutorial/path-operation-configuration.md
        - tutorial/encoder.md
        - tutorial/body-updates.md
        - Dependencies:
          - tutorial/dependencies/index.md
          - tutorial/dependencies/classes-as-dependencies.md
          - tutorial/dependencies/sub-dependencies.md
          - tutorial/dependencies/dependencies-in-path-operation-decorators.md
          - tutorial/dependencies/global-dependencies.md
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  5. docs/en/docs/features.md

    * <a href="https://github.com/OAI/OpenAPI-Specification" class="external-link" target="_blank"><strong>OpenAPI</strong></a> for API creation, including declarations of <abbr title="also known as: endpoints, routes">path</abbr> <abbr title="also known as HTTP methods, as POST, GET, PUT, DELETE">operations</abbr>, parameters, body requests, security, etc.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/path-params-numeric-validations.md

    !!! info
        `Query`, `Path`, and other classes you will see later are subclasses of a common `Param` class.
    
        All of them share the same parameters for additional validation and metadata you have seen.
    
    !!! note "Technical Details"
        When you import `Query`, `Path` and others from `fastapi`, they are actually functions.
    
        That when called, return instances of classes of the same name.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  7. docs/en/docs/how-to/sql-databases-peewee.md

    ### Create Peewee models for our data
    
    Now create the Peewee models (classes) for `User` and `Item`.
    
    This is the same you would do if you followed the Peewee tutorial and updated the models to have the same data as in the SQLAlchemy tutorial.
    
    !!! tip
        Peewee also uses the term "**model**" to refer to these classes and instances that interact with the database.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (1)
  8. fastapi/encoders.py

                    )
                )
            return encoded_list
    
        if type(obj) in ENCODERS_BY_TYPE:
            return ENCODERS_BY_TYPE[type(obj)](obj)
        for encoder, classes_tuple in encoders_by_class_tuples.items():
            if isinstance(obj, classes_tuple):
                return encoder(obj)
    
        try:
            data = dict(obj)
        except Exception as e:
            errors: List[Exception] = []
            errors.append(e)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/request-files.md

        ```Python hl_lines="7"
        {!> ../../../docs_src/request_files/tutorial001.py!}
        ```
    
    !!! info
        `File` is a class that inherits directly from `Form`.
    
        But remember that when you import `Query`, `Path`, `File` and others from `fastapi`, those are actually functions that return special classes.
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/header-params.md

        ```
    
    !!! note "Detalhes Técnicos"
        `Header` é uma classe "irmã" de `Path`, `Query` e `Cookie`. Ela também herda da mesma classe em comum `Param`.
    
        Mas lembre-se que quando você importa `Query`, `Path`, `Header`, e outras de `fastapi`, elas são na verdade funções que retornam classes especiais.
    
    !!! info
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 3.9K bytes
    - Viewed (0)
Back to top