Skip to content

CLI Reference

datadivr.cli

Command-line interface for DataDivr.

Functions

start_client(port=8765, host='127.0.0.1', log_level='INFO')

Start an interactive WebSocket client.

Source code in datadivr/cli.py
@app_cli.command()
def start_client(port: int = 8765, host: str = "127.0.0.1", log_level: str = "INFO") -> None:
    """Start an interactive WebSocket client."""
    start_client_app(host, port, log_level)

start_server(port=8765, host='127.0.0.1', static_dir='./static', log_level='INFO', pretty=True)

Start the WebSocket and static file server.

Source code in datadivr/cli.py
@app_cli.command()
def start_server(
    port: int = 8765,
    host: str = "127.0.0.1",
    static_dir: str | None = "./static",
    log_level: str = "INFO",
    pretty: bool = True,
) -> None:
    """Start the WebSocket and static file server."""
    start_server_app(host, port, static_dir, log_level, pretty)

options: show_root_heading: true show_source: true members: - start_server - start_client - common_options