http://mf34jlghauz5pxjcmdymdqbe5pva4v24logeys446tdrgd5lpsrocmqd.onion/tutorials/examples/relay_connections.html
That said, a general overview like this should be fine. import argparse import collections import time import stem.connection import stem.util.system import stem.util.str_tools from stem.control import Listener from stem.util.connection import get_connections , port_usage , is_valid_ipv4_address HEADER_LINE = " {version} uptime: {uptime} flags: {flags} \n " DIV = ' + %s + %s + %s + ' % ( ' - ' * 30 , ' - ' * 6 , ' - ' * 6 ) COLUMN = ' | %-28s | %4s | %4s | '...