xpublish.Rest.serve#

Rest.serve(host='0.0.0.0', port=9000, log_level='debug', **kwargs)[source]#

Serve this FastAPI application via uvicorn.run().

NOTE: This method is blocking and does not return.

Parameters:
  • host (Optional[str]) – Bind socket to this host.

  • port (Optional[int]) – Bind socket to this port.

  • log_level (Optional[Literal['critical', 'error', 'warning', 'info', 'debug', 'trace']]) – App logging level, valid options are {‘critical’, ‘error’, ‘warning’, ‘info’, ‘debug’, ‘trace’}.

  • **kwargs – Additional arguments to be passed to uvicorn.run().

Return type:

None