Okay, so you want to take a Twisted server and provide a way to execute arbitrary Python code within it while it is running. A few moments of googling gives you the information you need, namely that you want to use the twisted.manhole package. A few minutes more and you come across what seems to be a complete bit of sample code. Only problem is, it leaves out one piece of critical information, namely what type of object the mysterious "service" is supposed to be.
Take heart, gentle coder, now you have an example that is, in fact, complete:



Comments
2008-07-30 06:02
Sounds very good!
2008-07-29 23:30
well the current pycuda git ve rsion (http://github.com/be rlinguyinca/pycuda/tree/master ) (fork by me, with seve [...]
2008-07-29 12:45
I'm also against an integratio n with Pygame because i would like to use your library with pyglet at some point in [...]
2008-07-28 01:36
For the events I'm thinking of something like from qnet imp ort network, pygameevents n et = network.Network( ob [...]
2008-07-28 01:17
Cool stuff Mike. I'd vote agai nst integration with Pygame ev ents, unless it was completely optional. I don't know [...]
2008-07-26 06:10
oh, another note... here's the q3 networking doc that phil b ased his algorithms off. ht tp://trac.bookofhook.com [...]
2008-07-26 05:34
hi, awesome... we're go ing to start working on networ king in pygame the next releas e (1.9, starting in like [...]
2008-07-15 15:49
Hi Mike, I'm specifically inte rested in adding support to Py Installer for PyOpenGL 3 (pkg_ resources, etc.). Maybe [...]
2008-07-14 20:51
Nice one Mike!
2008-07-08 03:00
Cool ! I like OpenGL and py thon. Keep write many article s about OpenGL. I wait for mo re . Have a nice day !
2008-07-03 22:21
PyOpenGL should be fine with h igh-polygon count models. Aft er all, it's just shunting the information into the GL [...]
2008-07-03 22:08
Yes, Koolhaas is comparatively modern (the second book cover ed is from 1995), but it's sti ll a theory from 1978 th [...]
2008-07-03 10:08
We are using PypenGL in custom tools we are developing for t he studio pipeline. Right now we are designing a PyOpe [...]
2008-07-03 08:36
Koolhaas era is now
2008-07-01 23:42
OpenGLContext should handle th e textures properly in that re spect, it creates a shared App earance Node with a shar [...]