Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 76 for variables (0.32 sec)

  1. docs/en/docs/how-to/sql-databases-peewee.md

    that, with Peewee's current implementation, multiple tasks could be using the same `threading.local` variable and end up sharing the same connection and data (that they shouldn't), and at the same time, if they execute sync I/O-blocking code in a threadpool (as with normal `def` functions in FastAPI, in *path operations*  and dependencies), that code won't have access to the database state variables, even while it's part of the same request and it should be able to get access to the same database state....
    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)
  2. docs/en/docs/reference/status.md

    # Status Codes
    
    You can import the `status` module from `fastapi`:
    
    ```python
    from fastapi import status
    ```
    
    `status` is provided directly by Starlette.
    
    It contains a group of named constants (variables) with integer status codes.
    
    For example:
    
    * 200: `status.HTTP_200_OK`
    * 403: `status.HTTP_403_FORBIDDEN`
    * etc.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 871 bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/response-status-code.md

    ```Python hl_lines="6"
    {!../../../docs_src/response_status_code/tutorial001.py!}
    ```
    
    `201` is the status code for "Created".
    
    But you don't have to memorize what each of these codes mean.
    
    You can use the convenience variables from `fastapi.status`.
    
    ```Python hl_lines="1  6"
    {!../../../docs_src/response_status_code/tutorial002.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 29 14:02:58 GMT 2020
    - 4K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/background-tasks.md

    ## Caveat
    
    If you need to perform heavy background computation and you don't necessarily need it to be run by the same process (for example, you don't need to share memory, variables, etc), you might benefit from using other bigger tools like <a href="https://docs.celeryq.dev" class="external-link" target="_blank">Celery</a>.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  5. docs/es/docs/python-types.md

    Estos **type hints** son una nueva sintaxis, desde Python 3.6+, que permite declarar el <abbr title="por ejemplo: str, int, float, bool">tipo</abbr> de una variable.
    
    Usando las declaraciones de tipos para tus variables, los editores y otras herramientas pueden proveerte un soporte mejor.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  6. docs/fr/docs/python-types.md

    ### 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!}
    ```
    
    Vous pouvez ensuite déclarer une variable de type `Person` :
    
    ```Python hl_lines="6"
    {!../../../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)
  7. docs/en/docs/advanced/events.md

    Doing that in separated functions that don't share logic or variables together is more difficult as you would need to store values in global variables or similar tricks.
    
    Because of that, it's now recommended to instead use the `lifespan` as explained above.
    
    ## Technical Details
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/first-steps.md

    ```Python hl_lines="3"
    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    In diesem Beispiel ist die Variable `app` eine „Instanz“ der Klasse `FastAPI`.
    
    Dies wird der Hauptinteraktionspunkt für die Erstellung all Ihrer APIs sein.
    
    Die Variable `app` ist dieselbe, auf die sich der Befehl `uvicorn` bezieht:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --reload
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 12:16:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/openapi-callbacks.md

    * Der *Pfad* kann einen <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#key-expression" class="external-link" target="_blank">OpenAPI-3-Ausdruck</a> enthalten (mehr dazu weiter unten), wo er Variablen mit Parametern und Teilen des ursprünglichen Requests verwenden kann, der an *Ihre API* gesendet wurde.
    
    ### Der Callback-Pfadausdruck
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:23 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  10. docs/fr/docs/tutorial/query-params-str-validations.md

    Imaginez que vous vouliez que votre paramètre se nomme `item-query`.
    
    Comme dans la requête :
    
    ```
    http://127.0.0.1:8000/items/?item-query=foobaritems
    ```
    
    Mais `item-query` n'est pas un nom de variable valide en Python.
    
    Le nom le plus proche serait `item_query`.
    
    Mais vous avez vraiment envie que ce soit exactement `item-query`...
    
    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)
Back to top