view.run.servers¶
Magically run applications on some common servers.
Classes
|
Dataclass representing server settings that can be used to start serving an app. |
Exceptions
|
Something is wrong with the selected server. |
- exception BadServerError(*msg: str)¶
Bases:
ViewErrorSomething is wrong with the selected server.
This generally means that the target server isn’t installed or doesn’t exist (either not supported by view.py or there’s a typo present).
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- class ServerSettings(app: BaseApp, port: int, host: str, hint: str | None = None)¶
Bases:
objectDataclass representing server settings that can be used to start serving an app.
- AVAILABLE_SERVERS: ClassVar[Sequence[str]] = ['uvicorn', 'hypercorn', 'daphne', 'gunicorn', 'werkzeug', 'wsgiref']¶