Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 51 for perc (0.14 sec)

  1. docs_src/settings/app02/main.py

    
    @app.get("/info")
    async def info(settings: Settings = Depends(get_settings)):
        return {
            "app_name": settings.app_name,
            "admin_email": settings.admin_email,
            "items_per_user": settings.items_per_user,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 406 bytes
    - Viewed (0)
  2. docs_src/settings/app03_an/config.py

    from pydantic_settings import BaseSettings, SettingsConfigDict
    
    
    class Settings(BaseSettings):
        app_name: str = "Awesome API"
        admin_email: str
        items_per_user: int = 50
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 235 bytes
    - Viewed (0)
  3. docs_src/settings/app02/test_main.py

    
    def test_app():
        response = client.get("/info")
        data = response.json()
        assert data == {
            "app_name": "Awesome API",
            "admin_email": "******@****.***",
            "items_per_user": 50,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jul 29 09:26:07 GMT 2021
    - 515 bytes
    - Viewed (0)
  4. docs_src/settings/app02_an_py39/test_main.py

    
    def test_app():
        response = client.get("/info")
        data = response.json()
        assert data == {
            "app_name": "Awesome API",
            "admin_email": "******@****.***",
            "items_per_user": 50,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 515 bytes
    - Viewed (0)
  5. docs/es/docs/features.md

    ### Corto
    
    Tiene **configuraciones por defecto** razonables para todo, con configuraciones opcionales en todas partes. Todos los parámetros pueden ser ajustados para tus necesidades y las de tu API.
    
    Pero, todo **simplemente funciona** por defecto.
    
    ### Validación
    
    * Validación para la mayoría (¿o todos?) los **tipos de datos** de Python incluyendo:
        * Objetos JSON (`dict`).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  6. docs/es/docs/deployment/versions.md

    esto significa que usarás específicamente la versión `0.45.0`.
    
    También puedes fijar las versiones de esta forma:
    
    ```txt
    fastapi>=0.45.0,<0.46.0
    ```
    
    esto significa que usarás la versión `0.45.0` o superiores, pero menores a la versión `0.46.0`, por ejemplo, la versión `0.45.2` sería aceptada.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Feb 07 11:55:38 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  7. docs/de/docs/advanced/advanced-dependencies.md

    Stellen wir uns vor, wir möchten eine Abhängigkeit haben, die prüft, ob ein Query-Parameter `q` einen vordefinierten Inhalt hat.
    
    Aber wir wollen diesen vordefinierten Inhalt per Parameter festlegen können.
    
    ## Eine „aufrufbare“ Instanz
    
    In Python gibt es eine Möglichkeit, eine Instanz einer Klasse „aufrufbar“ („callable“) zu machen.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:18:49 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/security/http-basic-auth.md

    #### A "professional" attack
    
    Of course, the attackers would not try all this by hand, they would write a program to do it, possibly with thousands or millions of tests per second. And would get just one extra correct letter at a time.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 14:33:05 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  9. docs/en/docs/how-to/sql-databases-peewee.md

    !!! note "Technical Details"
        `threading.local` is used to have a "magic" variable that has a different value for each thread.
    
        This was useful in older frameworks designed to have one single thread per request, no more, no less.
    
        Using this, each request would have its own database connection/session, which is the actual final goal.
    
    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)
  10. docs/es/docs/python-types.md

    ```
    
    Es algo diferente.
    
    Estamos usando los dos puntos (`:`), no un símbolo de igual (`=`).
    
    Añadir los type hints normalmente no cambia lo que sucedería si ellos no estuviesen presentes.
    
    Pero ahora imagina que nuevamente estás creando la función, pero con los type hints.
    
    En el mismo punto intentas iniciar el auto-completado con `Ctrl+Space` y ves:
    
    <img src="https://fastapi.tiangolo.com/img/python-types/image02.png">
    
    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)
Back to top