Server¶
- class teachbooks.serve.Server(servedir: Path | str, workdir: Path | str, port: int | None = None)¶
Class for managing a Python webserver in the background.
- Attributes:
is_running
Check if the current process ID is a running webserver.
url
Get URL of running server.
Methods
|
Start server. |
|
Stop server and clean up. |