run

YouTubeNotifier.run(*, host: str = '0.0.0.0', port: int = 8000, app: FastAPI = None, log_level: int = 30, **configs: Any) None

Run the notifier to receive push notifications. This method will block until the notifier is stopped.

Parameters:
  • host – The host to run the server on.

  • port – The port to run the server on.

  • app – The FastAPI app to use. If not provided, a new app will be created.

  • log_level – The log level to use for the uvicorn server.

  • configs – Additional arguments to pass to the Config class of uvicorn.

Raises:

ValueError – If the given app instance has a route that conflicts with the notifier’s routes.