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

File metadata

File hashes

Hashes for swarmauri_middleware_stdio-0.8.0.dev5.tar.gz
Algorithm Hash digest
SHA256 70838740f987595f349adcc615caba60fc5eadcb6e1e7490ccdf0fa6ae1616ba
MD5 5bca99c7d6ce64b75035641ffb6374e6
BLAKE2b-256 450f55fc4696ce4c830fc7853db31f1413c70ab5f84de3aeaff8638ecb687f48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_middleware_stdio-0.8.0.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 2ca9c3dca82b036023b7a53838975b4b4df00cc156f4b5ab9db4089ac1207758
MD5 2cbe350266cab8ec84a820da36a38dbe
BLAKE2b-256 fdf8c92eef312fe65366f67c89e7871fe4f2b3964396b9d1324e28d6d214543a

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