Python-process-console
Версія від 22:37, 12 березня 2015, створена WikiSysop (обговорення | внесок)
Another implementation of roughly the same concept is provided by rconsole. From the documentation:
rconsole is a remote Python console with auto completion, which can be used to inspect and modify the namespace of a running script.
To invoke in a script do:
from rfoo.utils import rconsole rconsole.spawn_server()
To attach from a shell do:
$ rconsole
Security note: The rconsole listener started with spawn_server() will accept any local connection and may therefore be insecure to use in shared hosting or similar environments!