pyncette.healthcheck module

pyncette.healthcheck.default_healthcheck(app_context: pyncette.pyncette.PyncetteContext) → bool[source]
pyncette.healthcheck.use_healthcheck_server(app: pyncette.pyncette.Pyncette, port: int = 8080, bind_address: Optional[str] = None, healthcheck_handler: Callable[[pyncette.pyncette.PyncetteContext], Awaitable[bool]] = <function default_healthcheck>) → None[source]

Decorate Pyncette app with a healthcheck endpoint served as a HTTP endpoint.

Parameters:
  • app – Pyncette app
  • port – The local port to bind to
  • bind_address – The local address to bind to
Healthcheck_handler:
 

A coroutine that determines health status