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.dev3.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.dev3.tar.gz.

File metadata

File hashes

Hashes for swarmauri_middleware_stdio-0.8.0.dev3.tar.gz
Algorithm Hash digest
SHA256 a4f397e9bf1dfb9f52a8924f885a4567c25a4e09f3bcda04323ee83f31d8c26f
MD5 f2565e8a38efa851f509eaf1a5056ba1
BLAKE2b-256 7b9e9e664a4f353b0d80712715957be14f64797871aa975b461b250776ce77cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_middleware_stdio-0.8.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 6a34e5f26804b294bf10c2f78abc25ed4481db10cfe9fb3511007e9c5718e3c0
MD5 5fdedd8bc203e9938f1bb2e7d7c5f070
BLAKE2b-256 3b3702598c09530ccaa4132f59a318f143d6ed38359971b4ddc77dd869e599b4

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