Module Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias alias alias alias alias alias alias ImportFrom alias alias ImportFrom alias alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad body Assign NameStore BinOpMod Str NameLoad If CompareNotIn Str NameLoad body Assign NameStore BinOpAdd BinOpMod Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword IfExp NameLoad AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr IfExp NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Import alias If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword TupleLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr While Call AttributeLoad NameLoad attr body Expr Yield Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Raise Call NameLoad TupleLoad NameLoad NameLoad decorator_list NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Yield Call NameLoad Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str decorator_list Call NameLoad NameLoad Str NameLoad FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Yield Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr While BoolOpAnd NameLoad CompareIn Str SubscriptLoad NameLoad Index Num body Delete SubscriptDel NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Yield Call NameLoad Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Num Str decorator_list Call NameLoad NameLoad Str NameLoad FunctionDef arguments args NameParam defaults body Expr Yield Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Yield Call NameLoad BinOpMod BinOpMod Str NameLoad Num keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Yield Call NameLoad Str keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Yield Call AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad Str NameLoad FunctionDef arguments args NameParam defaults body Expr Yield Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Yield Call NameLoad BinOpMod BinOpMod Str NameLoad Num keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Yield Call NameLoad Str keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Yield Call AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad Str NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str If NameLoad body AugAssignAdd NameStore Str Assign TupleStore NameStore NameStore Yield Call NameLoad Str BinOpAdd NameLoad Str keyword NameLoad Raise Call NameLoad TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Yield Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Yield Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad If UnaryOpNot Call AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Slice UnaryOpUSub Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Yield Call AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad Str NameLoad FunctionDef arguments args NameParam defaults body Expr Yield Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Yield Call AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Yield Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list Assign NameStore Call NameLoad NameLoad
N/A N/A subprocess N/A shlex multiprocessing Process Queue tornado.testing gen_test tornado.gen coroutine Return circus.circusctl USAGE VERSION CircusCtl circus.tests.support TestCircus async_poll_for EasyTestSuite skipIf DEBUG PYTHON SLEEP circus.util tornado_sleep DEFAULT_ENDPOINT_DEALER circus.py3compat b s run_ctl N/A N/A args queue stdin endpoint N/A None DEFAULT_ENDPOINT_DEALER N/A N/A cmd N/A %s -m circus.circusctl PYTHON N/A N/A --endpoint args N/A N/A args N/A N/A --endpoint %s  endpoint args N/A proc N/A N/A subprocess Popen N/A N/A N/A cmd split N/A N/A shlex split args stdin N/A stdin N/A subprocess PIPE None stdout N/A subprocess PIPE stderr N/A subprocess PIPE N/A N/A stdout stderr N/A N/A proc communicate N/A stdin N/A b stdin None N/A stdout N/A s stdout N/A stderr N/A s stderr N/A queue N/A N/A N/A N/A queue put stderr N/A N/A N/A queue put stdout N/A N/A N/A gevent N/A N/A hasattr gevent shutdown N/A N/A N/A N/A gevent shutdown N/A N/A N/A ImportError N/A N/A N/A N/A stdout stderr N/A async_run_ctl N/A N/A args stdin endpoint N/A DEFAULT_ENDPOINT_DEALER N/A N/A 
    Start a process that will start the actual circusctl process and poll its
    ouput, via a queue, without blocking the I/O loop. We do this to avoid
    blocking the main thread while waiting for circusctl output, so that the
    arbiter will be able to respond to requests coming from circusctl.
     N/A queue N/A Queue N/A circusctl_process N/A Process target run_ctl args N/A args queue stdin endpoint N/A N/A N/A circusctl_process start N/A N/A N/A queue empty N/A N/A N/A N/A tornado_sleep 0.1 N/A stderr N/A N/A queue get N/A stdout N/A N/A queue get N/A N/A Return N/A stdout stderr N/A coroutine CommandlineTest N/A TestCircus N/A test_help_switch_no_command N/A N/A self N/A N/A N/A N/A stdout stderr N/A N/A async_run_ctl --help N/A stderr N/A N/A N/A N/A self assertIn UserWarning stderr N/A output N/A N/A stdout splitlines N/A N/A N/A self assertEqual N/A output N/A 0 N/A usage:  USAGE N/A N/A N/A self assertEqual N/A output N/A 2 Controls a Circus daemon N/A N/A N/A self assertEqual N/A output N/A 4 Commands: N/A N/A skipIf DEBUG Py_DEBUG=1 gen_test test_help_invalid_command N/A N/A self N/A N/A N/A N/A stdout stderr N/A N/A async_run_ctl foo N/A N/A N/A self assertEqual stdout N/A err N/A N/A stderr splitlines N/A N/A err N/A import N/A err N/A 0 N/A N/A N/A err N/A 0 N/A N/A N/A self assertEqual N/A err N/A 0 N/A usage:  USAGE N/A N/A N/A self assertEqual N/A err N/A 1 circusctl.py: error: unrecognized arguments: foo N/A gen_test test_help_for_add_command N/A N/A self N/A N/A N/A N/A stdout stderr N/A N/A async_run_ctl --help add N/A stderr N/A N/A N/A N/A self assertIn UserWarning stderr N/A N/A N/A self assertEqual N/A N/A N/A stdout splitlines N/A 0 Add a watcher N/A N/A skipIf DEBUG Py_DEBUG=1 gen_test test_add N/A N/A self N/A N/A N/A N/A N/A N/A self start_arbiter N/A N/A async_poll_for N/A self test_file START N/A ep N/A N/A self arbiter endpoint N/A N/A stdout stderr N/A N/A async_run_ctl N/A N/A add test2 "%s" SLEEP 1 endpoint ep N/A stderr N/A N/A N/A N/A self assertIn UserWarning stderr N/A N/A N/A self assertEqual N/A N/A stdout strip ok N/A N/A stdout stderr N/A N/A async_run_ctl status test2 endpoint ep N/A stderr N/A N/A N/A N/A self assertIn UserWarning stderr N/A N/A N/A self assertEqual N/A N/A stdout strip stopped N/A N/A N/A N/A self stop_arbiter N/A N/A skipIf DEBUG Py_DEBUG=1 gen_test test_add_start N/A N/A self N/A N/A N/A N/A N/A N/A self start_arbiter N/A N/A async_poll_for N/A self test_file START N/A ep N/A N/A self arbiter endpoint N/A N/A stdout stderr N/A N/A async_run_ctl N/A N/A add --start test2 "%s" SLEEP 1 endpoint ep N/A stderr N/A N/A N/A N/A self assertIn UserWarning stderr N/A N/A N/A self assertEqual N/A N/A stdout strip ok N/A N/A stdout stderr N/A N/A async_run_ctl status test2 endpoint ep N/A stderr N/A N/A N/A N/A self assertIn UserWarning stderr N/A N/A N/A self assertEqual N/A N/A stdout strip active N/A N/A N/A N/A self stop_arbiter N/A N/A skipIf DEBUG Py_DEBUG=1 gen_test N/A CLITest N/A TestCircus N/A run_ctl N/A N/A self command endpoint N/A DEFAULT_ENDPOINT_DEALER N/A N/A Send the given command to the CLI, and ends with EOF. N/A command N/A N/A command N/A N/A stdout stderr N/A N/A async_run_ctl N/A command EOF
 endpoint endpoint N/A N/A Return N/A stdout stderr N/A coroutine test_launch_cli N/A N/A self N/A N/A N/A N/A N/A N/A self start_arbiter N/A N/A async_poll_for N/A self test_file START N/A N/A stdout stderr N/A N/A N/A self run_ctl endpoint N/A N/A self arbiter endpoint N/A stderr N/A N/A N/A N/A self assertIn UserWarning stderr N/A output N/A N/A stdout splitlines N/A N/A N/A self assertEqual N/A output N/A 0 VERSION N/A N/A N/A N/A N/A output N/A 2 startswith N/A CircusCtl prompt N/A N/A prompt N/A N/A output N/A 2 N/A N/A N/A len N/A CircusCtl prompt N/A N/A N/A self assertEqual prompt N/A CircusCtl prompt N/A N/A N/A N/A self stop_arbiter N/A N/A skipIf DEBUG Py_DEBUG=1 gen_test test_cli_help N/A N/A self N/A N/A N/A N/A N/A N/A self start_arbiter N/A N/A stdout stderr N/A N/A N/A self run_ctl help endpoint N/A N/A self arbiter endpoint N/A N/A N/A self assertEqual stderr N/A prompt N/A N/A stdout splitlines N/A N/A N/A self assertEqual N/A prompt N/A 3 Documented commands (type help <topic>): N/A N/A N/A N/A self stop_arbiter N/A gen_test N/A N/A test_suite N/A EasyTestSuite __name__