Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 993 for Imports (0.04 sec)

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

    And then we do the same for the module `users`.
    
    We could also import them like:
    
    ```Python
    from app.routers import items, users
    ```
    
    /// info
    
    The first version is a "relative import":
    
    ```Python
    from .routers import items, users
    ```
    
    The second version is an "absolute import":
    
    ```Python
    from app.routers import items, users
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. docs/es/docs/tutorial/bigger-applications.md

    ```
    
    /// info | Información
    
    La primera versión es un "import relativo":
    
    ```Python
    from .routers import items, users
    ```
    
    La segunda versión es un "import absoluto":
    
    ```Python
    from app.routers import items, users
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  3. docs/es/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    Desde FastAPI 0.119.0, también hay compatibilidad parcial para Pydantic v1 desde dentro de Pydantic v2, para facilitar la migración a v2.
    
    Así que podrías actualizar Pydantic a la última versión 2 y cambiar los imports para usar el submódulo `pydantic.v1`, y en muchos casos simplemente funcionaría.
    
    {* ../../docs_src/pydantic_v1_in_v2/tutorial002_an_py310.py hl[2,5,15] *}
    
    /// warning | Advertencia
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:16:35 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

    import java.util.Collection;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    import java.util.Objects;
    import java.util.function.Supplier;
    import java.util.jar.JarFile;
    import java.util.stream.Collectors;
    import java.util.zip.ZipEntry;
    
    import org.apache.maven.RepositoryUtils;
    import org.apache.maven.api.Dependency;
    import org.apache.maven.api.Node;
    import org.apache.maven.api.PathScope;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 09 16:35:21 UTC 2025
    - 46.4K bytes
    - Viewed (0)
  5. docs/en/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    Since FastAPI 0.119.0, there's also partial support for Pydantic v1 from inside of Pydantic v2, to facilitate the migration to v2.
    
    So, you could upgrade Pydantic to the latest version 2, and change the imports to use the `pydantic.v1` submodule, and in many cases it would just work.
    
    {* ../../docs_src/pydantic_v1_in_v2/tutorial002_an_py310.py hl[2,5,15] *}
    
    /// warning
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/debugging.md

    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    but is not called when another file imports it, like in:
    
    ```Python
    from myapp import app
    ```
    
    #### More details { #more-details }
    
    Let's say your file is named `myapp.py`.
    
    If you run it with:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/testing.md

    ``` hl_lines="5"
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Because this file is in the same package, you can use relative imports to import the object `app` from the `main` module (`main.py`):
    
    {* ../../docs_src/app_testing/app_a_py39/test_main.py hl[3] *}
    
    
    ...and have the code for the tests just like before.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  8. pyproject.toml

    "docs_src/dependencies/tutorial008b_an_py39.py" = ["B904"]
    
    
    [tool.ruff.lint.isort]
    known-third-party = ["fastapi", "pydantic", "starlette"]
    
    [tool.ruff.lint.pyupgrade]
    # Preserve types, even if a file imports `from __future__ import annotations`.
    keep-runtime-typing = true
    
    [tool.inline-snapshot]
    # default-flags=["fix"]
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/bigger-applications.md

    Wir könnten sie auch wie folgt importieren:
    
    ```Python
    from app.routers import items, users
    ```
    
    /// info | Info
    
    Die erste Version ist ein „relativer Import“:
    
    ```Python
    from .routers import items, users
    ```
    
    Die zweite Version ist ein „absoluter Import“:
    
    ```Python
    from app.routers import items, users
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 13:54:34 UTC 2025
    - 21.3K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/bigger-applications.md

    Agora, vamos ver o módulo em `app/main.py`.
    
    Aqui é onde você importa e usa a classe `FastAPI`.
    
    Este será o arquivo principal em seu aplicativo que une tudo.
    
    E como a maior parte de sua lógica agora viverá em seu próprio módulo específico, o arquivo principal será bem simples.
    
    ### Importe o `FastAPI` { #import-fastapi }
    
    Você importa e cria uma classe `FastAPI` normalmente.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 20:32:40 UTC 2025
    - 19.7K bytes
    - Viewed (0)
Back to top