Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Kappen (0.14 sec)

  1. tests/test_ws_dependencies.py

    
    def dependency_list() -> List[str]:
        return []
    
    
    DepList = Annotated[List[str], Depends(dependency_list)]
    
    
    def create_dependency(name: str):
        def fun(deps: DepList):
            deps.append(name)
    
        return Depends(fun)
    
    
    router = APIRouter(dependencies=[create_dependency("router")])
    prefix_router = APIRouter(dependencies=[create_dependency("prefix_router")])
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 20:35:39 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  2. tests/test_ws_router.py

        caught = []
    
        @websocket_middleware
        async def catcher(websocket, call_next):
            try:
                return await call_next()
            except Exception as e:  # pragma: no cover
                caught.append(e)
                raise
    
        myapp = make_app(middleware=[Middleware(catcher)])
    
        client = TestClient(myapp)
        with pytest.raises(WebSocketDisconnect) as e:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 19:08:14 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  3. docs/de/docs/advanced/websockets.md

    Sie sehen eine einfache Seite wie:
    
    <img src="/img/tutorial/websockets/image01.png">
    
    Sie können Nachrichten in das Eingabefeld tippen und absenden:
    
    <img src="/img/tutorial/websockets/image02.png">
    
    Und Ihre **FastAPI**-Anwendung mit WebSockets antwortet:
    
    <img src="/img/tutorial/websockets/image03.png">
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:58 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  4. docs/de/docs/advanced/events.md

    {!../../../docs_src/events/tutorial002.py!}
    ```
    
    Hier schreibt die `shutdown`-Eventhandler-Funktion eine Textzeile `"Application shutdown"` in eine Datei `log.txt`.
    
    !!! info
        In der Funktion `open()` bedeutet `mode="a"` „append“ („anhängen“), sodass die Zeile nach dem, was sich in dieser Datei befindet, hinzugefügt wird, ohne den vorherigen Inhalt zu überschreiben.
    
    !!! tip "Tipp"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:30:59 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  5. tests/test_datastructures.py

        path.write_bytes(b"<file content>")
        app = FastAPI()
    
        testing_file_store: List[UploadFile] = []
    
        @app.post("/uploadfile/")
        def create_upload_file(file: UploadFile):
            testing_file_store.append(file)
            return {"filename": file.filename}
    
        client = TestClient(app)
        with path.open("rb") as file:
            response = client.post("/uploadfile/", files={"file": file})
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 2K bytes
    - Viewed (0)
  6. docs/en/docs/features.md

    Including external libraries also based on Pydantic, as <abbr title="Object-Relational Mapper">ORM</abbr>s, <abbr title="Object-Document Mapper">ODM</abbr>s for databases.
    
    This also means that in many cases you can pass the same object you get from a request **directly to the database**, as everything is validated automatically.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  7. docs/em/docs/features.md

    ✅ 🔢 🗃 ⚓️ 🔛 Pydantic, <abbr title="Object-Relational Mapper">🐜</abbr>Ⓜ, <abbr title="Object-Document Mapper">🏭</abbr>Ⓜ 💽.
    
    👉 ⛓ 👈 📚 💼 👆 💪 🚶‍♀️ 🎏 🎚 👆 🤚 ⚪️➡️ 📨 **🔗 💽**, 🌐 ✔ 🔁.
    
    🎏 ✔ 🎏 🌌 🤭, 📚 💼 👆 💪 🚶‍♀️ 🎚 👆 🤚 ⚪️➡️ 💽 **🔗 👩‍💻**.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/openapi-callbacks.md

    # OpenAPI Callbacks
    
    You could create an API with a *path operation* that could trigger a request to an *external API* created by someone else (probably the same developer that would be *using* your API).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  9. .github/DISCUSSION_TEMPLATE/questions.yml

        id: description
        attributes:
          label: Description
          description: |
            What is the problem, question, or error?
    
            Write a short description telling me what you are doing, what you expect to happen, and what is currently happening.
          placeholder: |
            * Open the browser and call the endpoint `/`.
            * It returns a JSON with `{"Hello": "World"}`.
            * But I expected it to return `{"Hello": "Sara"}`.
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Aug 03 15:59:41 GMT 2023
    - 5.8K bytes
    - Viewed (1)
  10. docs/en/docs/advanced/events.md

    !!! tip
        The `shutdown` would happen when you are **stopping** the application.
    
        Maybe you need to start a new version, or you just got tired of running it. 🤷
    
    ### Lifespan function
    
    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)
Back to top