API reference¶
safir Package¶
Safir is the SQuaRE framework for Roundtable bots.
Variables¶
The version string of Safir (PEP 440 / SemVer compatible). |
|
The decomposed version, split across “ |
safir.http Module¶
Utilities for using the aiohttp client in Safir-based apps.
Functions¶
|
Create an aiohttp.ClientSession and make it available as a |
safir.logging Module¶
Utilities for configuring structlog-based logging.
Functions¶
|
Configure logging and structlog. |
Get the context-local structlog logger with bound request context. |
Variables¶
A context-local structlog logger. |
safir.metadata Module¶
Standardized metadata for Roundtable HTTP services.
Functions¶
|
Add a metadata object to the application under the |
|
Get a specific URL from the |
safir.middleware Module¶
Middleware for aiohttp.web servers.
Functions¶
|
Bind request metadata to the context-local structlog logger. |