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

File metadata

File hashes

Hashes for swarmauri_middleware_stdio-0.8.0.dev2.tar.gz
Algorithm Hash digest
SHA256 7194959baf6bfd5f24607ca0e777de043d3a11318fc2566e0dc7543707a0eb07
MD5 ca13076984a3507ca5eb1bc5014fd3be
BLAKE2b-256 d9ad48512e85d7a76f6435245794889ce34b1f5bf0f2c025d42e22af2efde5ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_middleware_stdio-0.8.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 f4761a6375c7dfc8d13bee96699cd47e374035c067d3c5dbefe8f157c06841f9
MD5 cc751b575eb0720e8f3d533453a1fef8
BLAKE2b-256 c127160f5af3ff7101460d79cd13fc0efd2c69cf8d8f52dccd87834aaeb92471

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