1
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
2
# See LICENSE for details.
4
# You can run this .tac file directly with:
7
"""Nearly pointless demonstration of the manhole interactive interpreter.
9
This does about the same thing as demo_manhole, but uses the tap
10
module's makeService method instead. The only interesting difference
11
is that in this version, the telnet server also requires
14
Note, you will have to create a file named \"passwd\" and populate it
15
with credentials (in the format of passwd(5)) to use this demo.
18
from twisted.application import service
19
application = service.Application("TAC Demo")
21
from twisted.conch import manhole_tap
22
manhole_tap.makeService({"telnetPort": "tcp:6023",
23
"sshPort": "tcp:6022",
24
"namespace": {"foo": "bar"},
25
"passwd": "passwd"}).setServiceParent(application)