hypershell.server#

Under construction

Directly create a server instance from an iterable of tasks (strings).



hypershell.server.serve_from(source: Iterable[str], in_memory: bool = False, no_confirm: bool = False, bundlesize: int = 1, bundlewait: int = 5, address: Tuple[str, int] = ('localhost', 50001), auth: str = '__HYPERSHELL__BAD__AUTHKEY__', max_retries: int = 0, eager: bool = False, redirect_failures: IO | None = None, restart_mode: bool = False, evict_after: int = 600) None[source]#

Run server with the given task source, run until complete.

Note

Something important to remember.

Example:
>>> from hypershell.server import serve_from
>>> serve_from(['echo AA', 'echo BB', 'echo CC'])