subsequence.live_client ======================= .. py:module:: subsequence.live_client .. autoapi-nested-parse:: Interactive REPL client for live coding a running Subsequence composition. Usage:: python -m subsequence.live_client python -m subsequence.live_client --port 5555 The client connects to a live server started by ``composition.live()`` and provides an interactive Python prompt. Multi-line blocks are supported - type a line ending with ``:`` and the client will wait for more input. Press Ctrl+C to cancel the current input. Press Ctrl+D to quit. Module Contents --------------- .. py:class:: LiveClient TCP client that sends code to a running Subsequence live server. Initialize with no connection. .. py:method:: close() -> None Close the connection. .. py:method:: connect(host: str = '127.0.0.1', port: int = 5555) -> None Connect to the live server. .. py:method:: send(code: str) -> str Send code to the server and return the response. .. py:function:: main() -> None Run the interactive REPL loop.