Skip to main content

Middleware that logs requests and responses to standard output

Project description

Swamauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_middleware_stdio


Swarmauri Middleware Stdio

Middleware that logs requests and responses to standard output.

Usage

from fastapi import FastAPI
from swarmauri_middleware_stdio import StdioMiddleware

app = FastAPI()
app.middleware("http")(StdioMiddleware().dispatch)

@app.get("/")
async def hello() -> dict[str, str]:
    return {"message": "hello"}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swarmauri_middleware_stdio-0.8.0.dev4.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file swarmauri_middleware_stdio-0.8.0.dev4.tar.gz.

File metadata

File hashes

Hashes for swarmauri_middleware_stdio-0.8.0.dev4.tar.gz
Algorithm Hash digest
SHA256 785bf1f27ef3bb9ef6497acdc762cbf0d3834b768540831590a4d122966d3815
MD5 9fdf4a47e0dc1a692839fdba9f4e45f0
BLAKE2b-256 dc0e360a047f9b68b1cc475fe217ed59297a4121a3f384c6359771ad9da6d2ec

See more details on using hashes here.

File details

Details for the file swarmauri_middleware_stdio-0.8.0.dev4-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_middleware_stdio-0.8.0.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 7a59fd54443d57e7390a6344d7e17ce172ddd59548eaa0600efb0a44f4e67f79
MD5 155cadd093d9166677762b7f871aee4d
BLAKE2b-256 51325d83698fb3b245264cee7afddc697918c47ce7cccaf9b8a2db430d055317

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page