Skip to content

vukasin/tornado-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tornado-shell

A interactive shell for tornado processes. The commands are executed INSIDE the main IOLoop so blocking calls will cause the IOLoop to block.

Here's a code example. This will open a prompt where you can interact with the system. A variable named 'ioloop' will be visible.

import tornado.ioloop as io
import tornadoshell

ioloop = io.IOLoop.instance()

shell = tornadoshell.Shell(context={'ioloop': ioloop})
shell.start()

ioloop.start()

Here's an example interaction using the above code:

mbpro:tornado-shell vukasin$ python3 test.py 
$>ioloop
<tornado.platform.kqueue.KQueueIOLoop object at 0x1006ccd90>
$>__name__
'builtins'
$>exit()
mbpro:tornado-shell vukasin$ 

About

A interactive shell for tornado processes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages