Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for Modules (0.2 sec)

  1. docs/en/docs/advanced/path-operation-advanced-configuration.md

    !!! warning
        If you do this, you have to make sure each one of your *path operation functions* has a unique name.
    
        Even if they are in different modules (Python files).
    
    ## Exclude from OpenAPI
    
    To exclude a *path operation* from the generated OpenAPI schema (and thus, from the automatic documentation systems), use the parameter `include_in_schema` and set it to `False`:
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  2. docs/fr/docs/advanced/path-operation-advanced-configuration.md

    !!! warning "Attention"
        Pour faire cela, vous devez vous assurer que chacun de vos *chemin* ait un nom unique.
    
        Même s'ils se trouvent dans des modules différents (fichiers Python).
    
    ## Exclusion d'OpenAPI
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/bigger-applications.md

        ```
    
        To learn more about Python Packages and Modules, read <a href="https://docs.python.org/3/tutorial/modules.html" class="external-link" target="_blank">the official Python documentation about Modules</a>.
    
    ### Avoid name collisions
    
    We are importing the submodule `items` directly, instead of importing just its variable `router`.
    
    This is because we also have another variable named `router` in the submodule `users`.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  4. docs/en/mkdocs.yml

      mkdocstrings:
        handlers:
          python:
            options:
              extensions:
              - griffe_typingdoc
              show_root_heading: true
              show_if_no_docstring: true
              preload_modules:
              - httpx
              - starlette
              inherited_members: true
              members_order: source
              separate_signature: true
              unwrap_annotated: true
              filters:
              - '!^_'
    Others
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Mon Apr 01 16:48:56 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/testing.md

    ## Separating tests
    
    In a real application, you probably would have your tests in a different file.
    
    And your **FastAPI** application might also be composed of several files/modules, etc.
    
    ### **FastAPI** app file
    
    Let's say you have a file structure as described in [Bigger Applications](bigger-applications.md){.internal-link target=_blank}:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/bigger-applications.md

        ```Python
        from app.routers import items, users
        ```
    
        Um mehr über Python-Packages und -Module zu erfahren, lesen Sie <a href="https://docs.python.org/3/tutorial/modules.html" class="external-link" target="_blank">die offizielle Python-Dokumentation über Module</a>.
    
    ### Namenskollisionen vermeiden
    
    Wir importieren das Submodul `items` direkt, anstatt nur seine Variable `router` zu importieren.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:27:59 GMT 2024
    - 21.1K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/bigger-applications.md

    🎏 📁 📊 ⏮️ 🏤:
    
    ```
    .
    ├── app                  # "app" is a Python package
    │   ├── __init__.py      # this file makes "app" a "Python package"
    │   ├── main.py          # "main" module, e.g. import app.main
    │   ├── dependencies.py  # "dependencies" module, e.g. import app.dependencies
    │   └── routers          # "routers" is a "Python subpackage"
    │   │   ├── __init__.py  # makes "routers" a "Python subpackage"
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  8. pyproject.toml

    [tool.hatch.version]
    path = "fastapi/__init__.py"
    
    [tool.mypy]
    strict = true
    
    [[tool.mypy.overrides]]
    module = "fastapi.concurrency"
    warn_unused_ignores = false
    ignore_missing_imports = true
    
    [[tool.mypy.overrides]]
    module = "fastapi.tests.*"
    ignore_missing_imports = true
    check_untyped_defs = true
    
    [[tool.mypy.overrides]]
    module = "docs_src.*"
    disallow_incomplete_defs = false
    disallow_untyped_defs = false
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:28:39 GMT 2024
    - 7K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/bigger-applications.md

        ```
    
        第二个版本是「绝对导入」:
    
        ```Python
        from app.routers import items, users
        ```
    
        要了解有关 Python 包和模块的更多信息,请查阅<a href="https://docs.python.org/3/tutorial/modules.html" class="external-link" target="_blank">关于 Modules 的 Python 官方文档</a>。
    
    ### 避免名称冲突
    
    我们将直接导入 `items` 子模块,而不是仅导入其 `router` 变量。
    
    这是因为我们在 `users` 子模块中也有另一个名为 `router` 的变量。
    
    如果我们一个接一个地导入,例如:
    
    ```Python
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.5K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/security/oauth2-jwt.md

    !!! note
        If you check the new (fake) database `fake_users_db`, you will see how the hashed password looks like now: `"$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW"`.
    
    ## Handle JWT tokens
    
    Import the modules installed.
    
    Create a random secret key that will be used to sign the JWT tokens.
    
    To generate a secure random secret key use the command:
    
    <div class="termy">
    
    ```console
    $ openssl rand -hex 32
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13K bytes
    - Viewed (0)
Back to top