Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 159 for lists (0.14 sec)

  1. tests/test_compat.py

        # to be read from files and other types, but I'm not even sure it's a good idea
        # to support it as a first class "feature"
        assert is_bytes_sequence_annotation(Union[List[str], List[bytes]])
    
    
    def test_is_uploadfile_sequence_annotation():
        # For coverage
        # TODO: in theory this would allow declaring types that could be lists of UploadFile
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  2. docs/em/docs/advanced/nosql-databases.md

    📥 👥 🔜 👀 🖼 ⚙️ **<a href="https://www.couchbase.com/" class="external-link" target="_blank">🗄</a>**, <abbr title="Document here refers to a JSON object (a dict), with keys and values, and those values can also be other JSON objects, arrays (lists), numbers, strings, booleans, etc.">📄</abbr> 🧢 ☁ 💽.
    
    👆 💪 🛠️ ⚫️ 🙆 🎏 ☁ 💽 💖:
    
    * **✳**
    * **👸**
    * **✳**
    * **🇸🇲**
    * **✳**, ♒️.
    
    !!! tip
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/response-model.md

    `response_model` receives the same type you would declare for a Pydantic model field, so, it can be a Pydantic model, but it can also be, e.g. a `list` of Pydantic models, like `List[Item]`.
    
    FastAPI will use this `response_model` to do all the data documentation, validation, etc. and also to **convert and filter the output data** to its type declaration.
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  4. docs/en/docs/how-to/nosql-databases-couchbase.md

    You can adapt it to any other NoSQL database like:
    
    * **MongoDB**
    * **Cassandra**
    * **CouchDB**
    * **ArangoDB**
    * **ElasticSearch**, etc.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 6K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/body-nested-models.md

        ```
    
    This will make `tags` be a list, although it doesn't declare the type of the elements of the list.
    
    ## List fields with type parameter
    
    But Python has a specific way to declare lists with internal types, or "type parameters":
    
    ### Import typing's `List`
    
    In Python 3.9 and above you can use the standard `list` to declare these type annotations as we'll see below. 💡
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  6. docs/fr/docs/tutorial/query-params-str-validations.md

      ]
    }
    ```
    
    #### Utiliser `list`
    
    Il est aussi possible d'utiliser directement `list` plutôt que `List[str]` :
    
    ```Python hl_lines="7"
    {!../../../docs_src/query_params_str_validations/tutorial013.py!}
    ```
    
    !!! note
        Dans ce cas-là, **FastAPI** ne vérifiera pas le contenu de la liste.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jul 27 18:53:21 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/body-nested-models.md

    ```Python
    my_list: list[str]
    ```
    
    Und in Python-Versionen vor 3.9:
    
    ```Python
    from typing import List
    
    my_list: List[str]
    ```
    
    Das ist alles Standard-Python-Syntax für Typdeklarationen.
    
    Verwenden Sie dieselbe Standardsyntax für Modellattribute mit inneren Typen.
    
    In unserem Beispiel können wir also bewirken, dass `tags` spezifisch eine „Liste von Strings“ ist:
    
    === "Python 3.10+"
    
        ```Python hl_lines="12"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  8. docs/es/docs/advanced/response-directly.md

    ## Usando el `jsonable_encoder` en una `Response`
    
    Como **FastAPI** no realiza ningún cambio en la `Response` que devuelves, debes asegurarte de que el contenido está listo.
    
    Por ejemplo, no puedes poner un modelo Pydantic en una `JSONResponse` sin primero convertirlo a un `dict` con todos los tipos de datos (como `datetime`, `UUID`, etc) convertidos a tipos compatibles con JSON.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 11:57:27 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/extra-models.md

    ## List of models
    
    The same way, you can declare responses of lists of objects.
    
    For that, use the standard Python `typing.List` (or just `list` in Python 3.9 and above):
    
    === "Python 3.9+"
    
        ```Python hl_lines="18"
        {!> ../../../docs_src/extra_models/tutorial004_py39.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (1)
  10. docs/fr/docs/features.md

    Mais, **tout fonctionne** par défaut.
    
    ### Validation
    
    * Validation pour la plupart (ou tous?) les **types de données** Python incluant:
        * objets JSON (`dict`).
        * listes JSON (`list`) définissant des types d'éléments.
        * Champs String (`str`), définition de longueur minimum ou maximale.
        * Nombres (`int`, `float`) avec valeur minimale and maximale, etc.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.1K bytes
    - Viewed (0)
Back to top