Skip to content

terminal_clearance

terminal_clearance

Plain-terminal interactive clearance tool.

Subscribes to Shield1/Clearance1 D-Bus signals and presents blocked connections in a simple numbered-prompt format. The operator types a <N> (allow) or d <N> (deny) to send verdicts.

No Textual or curses dependency — works over any terminal, SSH, or serial console.

run_clearance() async

Entry point coroutine for the terminal clearance tool.

Source code in src/terok_clearance/cli/terminal_clearance.py
async def run_clearance() -> None:
    """Entry point coroutine for the terminal clearance tool."""
    logging.basicConfig(
        format="%(asctime)s %(levelname)s %(name)s: %(message)s",
        level=logging.INFO,
    )
    app = _TerminalClearance()
    await app.run()