Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for importDir (0.04 sec)

  1. docs/es/docs/tutorial/bigger-applications.md

    │   │   └── users.py
    │   └── internal
    │       ├── __init__.py
    │       └── admin.py
    ```
    
    /// tip | Consejo
    
    Hay varios archivos `__init__.py`: uno en cada directorio o subdirectorio.
    
    Esto es lo que permite importar código de un archivo a otro.
    
    Por ejemplo, en `app/main.py` podrías tener una línea como:
    
    ```
    from app.routers import items
    ```
    
    ///
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun May 11 13:37:26 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/bigger-applications.md

    Mas ele ainda faz parte da mesma aplicação/web API **FastAPI** (faz parte do mesmo "pacote Python").
    
    Você pode criar as *operações de rotas* para esse módulo usando o `APIRouter`.
    
    ### Importar `APIRouter`
    
    você o importa e cria uma "instância" da mesma maneira que faria com a classe `FastAPI`:
    
    ```Python hl_lines="1  3" title="app/routers/users.py"
    {!../../docs_src/bigger_applications/app/routers/users.py!}
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun May 11 13:37:26 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/debugging.md

    So, the section:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    will run.
    
    ---
    
    This won't happen if you import that module (file).
    
    So, if you have another file `importer.py` with:
    
    ```Python
    from myapp import app
    
    # Some more code
    ```
    
    in that case, the automatically created variable inside of `myapp.py` will not have the variable `__name__` with a value of `"__main__"`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  4. requirements_lock_3_9.txt

    idna==3.10 \
        --hash=sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9 \
        --hash=sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3
        # via requests
    importlib-metadata==8.6.1 \
        --hash=sha256:02a89390c1e15fdfdc0d7c6b25cb3e62650d0494005c97d6f148bf5b9787525e \
        --hash=sha256:310b41d755445d74569f993ccfc22838295d9fe005425094fad953d7f15c8580
        # via markdown
    jax==0.4.7 \
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Wed Sep 03 23:57:17 UTC 2025
    - 66.6K bytes
    - Viewed (0)
  5. ci/official/requirements_updater/numpy1_requirements/requirements_lock_3_9.txt

    idna==3.10 \
        --hash=sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9 \
        --hash=sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3
        # via requests
    importlib-metadata==8.6.1 \
        --hash=sha256:02a89390c1e15fdfdc0d7c6b25cb3e62650d0494005c97d6f148bf5b9787525e \
        --hash=sha256:310b41d755445d74569f993ccfc22838295d9fe005425094fad953d7f15c8580
        # via markdown
    jax==0.4.7 \
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Wed Sep 03 23:57:17 UTC 2025
    - 65.9K bytes
    - Viewed (0)
  6. docs/pt/docs/advanced/generate-clients.md

    ```
    
    </div>
    
    Esse comando gerará o código em `./src/client` e usará o `axios` (a biblioteca HTTP frontend) internamente.
    
    ### Experimente o Código do Cliente
    
    Agora você pode importar e usar o código do cliente, ele poderia ser assim, observe que você obtém preenchimento automático para os métodos:
    
    <img src="/img/tutorial/generate-clients/image02.png">
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Jun 17 11:53:56 UTC 2025
    - 11K bytes
    - Viewed (0)
  7. docs/es/docs/advanced/generate-clients.md

    ```
    
    </div>
    
    Ese comando generará código en `./src/client` y usará `axios` (el paquete HTTP de frontend) internamente.
    
    ### Prueba el Código del Cliente
    
    Ahora puedes importar y usar el código del cliente, podría verse así, nota que tienes autocompletado para los métodos:
    
    <img src="/img/tutorial/generate-clients/image02.png">
    
    También obtendrás autocompletado para el payload a enviar:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Jun 17 11:53:56 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top