subsequence.live_client

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

class subsequence.live_client.LiveClient[source]

TCP client that sends code to a running Subsequence live server.

Initialize with no connection.

close() None[source]

Close the connection.

connect(host: str = '127.0.0.1', port: int = 5555) None[source]

Connect to the live server.

send(code: str) str[source]

Send code to the server and return the response.

subsequence.live_client.main() None[source]

Run the interactive REPL loop.