[Twisted-Python] Re: Twisted-Python Digest, Vol 17, Issue 12

pooja bector pbector at yahoo.com
Sun Aug 14 14:55:28 EDT 2005


Hi
 
Thanks for the quick reply.
 
PLease let me know if the twisted word chat server   is available as a software download??
>From where can i download the server and client software?
 
Thanks
twisted-python-request at twistedmatrix.com wrote:
Send Twisted-Python mailing list submissions to
twisted-python at twistedmatrix.com

To subscribe or unsubscribe via the World Wide Web, visit
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
or, via email, send a message with subject or body 'help' to
twisted-python-request at twistedmatrix.com

You can reach the person managing the list at
twisted-python-owner at twistedmatrix.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Twisted-Python digest..."


Today's Topics:

1. Re: twisted-compliant interactive interpreter (Antony Kummel)
2. Query (pooja bector)
3. SSL Example? (markw)
4. Re: Query (Jp Calderone)


----------------------------------------------------------------------

Message: 1
Date: Sun, 14 Aug 2005 05:15:27 -0700 (PDT)
From: Antony Kummel 
Subject: Re: [Twisted-Python] twisted-compliant interactive
interpreter
To: Twisted general discussion 
Message-ID: <20050814121527.92362.qmail at web33908.mail.mud.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

Here is a version of PyCrust I hooked up that uses
Manhole. I'm trying to figure out if there's a way to
easily mix together some free tools to make Twisted
development on Windows easier. Comments wanted.

Antony Kummel

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
"""
PyCrust is a python shell and namespace browser application.
tCrust is a version of PyCrust that works with Twisted.
"""

# The next two lines, and the other code below that makes use of
# ``__main__`` and ``original``, serve the purpose of cleaning up the
# main namespace to look as much as possible like the regular Python
# shell environment.
import __main__
original = __main__.__dict__.keys()

__original_author__ = "Patrick K. O'Brien 
"

import wx

class App(wx.App):
"""PyCrust standalone application."""

def OnInit(self):
import wx
from wx import py

wx.InitAllImageHandlers()

# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# make some adaptations
self.frame = py.crust.CrustFrame(title="Twisted PyCrust!",
InterpClass=self.getInterpClass())
def myOnClose(self, event):
from twisted.internet import reactor
reactor.addSystemEventTrigger('after', 'shutdown', self._OnClose, (None,))
reactor.stop()
self.frame._OnClose = self.frame.OnClose
self.frame.OnClose = myOnClose
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

self.frame.SetSize((800, 600))
self.frame.Show()
self.SetTopWindow(self.frame)
return True

def getInterpClass(self):
import sys
from wx import py
from twisted.conch.manhole import ManholeInterpreter

class ManholeCrustInterpreter(py.interpreter.Interpreter):
"""A version of the PyCrust interpreter that uses the manhole display hook"""
def __init__(self, locals=None, rawin=None,
stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr):
py.interpreter.Interpreter.__init__(self, locals, rawin,
stdin, stdout, stderr)
self.manhole = ManholeInterpreter(self, locals)

def addOutput(self, data, async):
self.write(data)

def runcode(self, *a, **kw):
orighook, sys.displayhook = sys.displayhook, self.manhole.displayhook
try:
py.interpreter.Interpreter.runcode(self, *a, **kw)
finally:
sys.displayhook = orighook

return ManholeCrustInterpreter 

'''
The main() function needs to handle being imported, such as with the
pycrust script that wxPython installs:

#!/usr/bin/env python

from wx.py.PyCrust import main
main()
'''

def main():
"""The main function for the PyCrust program."""
# Cleanup the main namespace, leaving the App class.
import __main__
md = __main__.__dict__
keepers = original
keepers.append('App')
for key in md.keys():
if key not in keepers:
del md[key]
# Create an application instance.
app = App(0)
# Mimic the contents of the standard Python shell's sys.path.
import sys
if sys.path[0]:
sys.path[0] = ''
# Add the application object to the sys module's namespace.
# This allows a shell user to do:
# >>> import sys
# >>> sys.app.whatever
sys.app = app
del sys
# Cleanup the main namespace some more.
if md.has_key('App') and md['App'] is App:
del md['App']
if md.has_key('__main__') and md['__main__'] is __main__:
del md['__main__']
# Start the wxPython event loop.

# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# this is to integrate Twisted and wxPython
from twisted.internet import threadedselectreactor
threadedselectreactor.install()
from twisted.internet import reactor
import wx
reactor.interleave(wx.CallAfter)
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

app.MainLoop()

if __name__ == '__main__':
main()

------------------------------

Message: 2
Date: Sun, 14 Aug 2005 07:11:39 -0700 (PDT)
From: pooja bector 

Subject: [Twisted-Python] Query
To: twisted-python at twistedmatrix.com
Message-ID: <20050814141139.57997.qmail at web34305.mail.mud.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi All

I am new to Twisted networks.I read its documentation that it is a network over which we can build network applications like chat server.
I have queries regarding , Twisted Word chat server , written in python.
I just know that it is available under free BSD license.
I want to know that is it available as a free download.Can I download the server and a compatible client ? 
are the APIs of the server available?
How many simlutaneuos users does it support.
Does it supports group chat and multilanguage chatting.

Thanks 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20050814/0a106808/attachment-0001.htm

------------------------------

Message: 3
Date: Sun, 14 Aug 2005 18:11:18 +0100
From: markw 
Subject: [Twisted-Python] SSL Example?
To: Twisted general discussion 
Message-ID: 
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Hi,

I am contemplating running XML-RPC over SSL (basically for site to 
site process communication over the internet). Has anyone got any 
example code that would point me in the right direction (or just some 
clues :-) )

cheers

mark 



------------------------------

Message: 4
Date: Sun, 14 Aug 2005 13:28:44 -0400
From: Jp Calderone 
Subject: Re: [Twisted-Python] Query
To: Twisted general discussion 
Message-ID: <20050814172844.3914.304813179.divmod.quotient.4866 at ohm>
Content-Type: text/plain; format=flowed

On Sun, 14 Aug 2005 07:11:39 -0700 (PDT), pooja bector 
wrote:
>Hi All
>
>I am new to Twisted networks.I read its documentation that it is a network over which we can build network applications like chat server.
>I have queries regarding , Twisted Word chat server , written in python.
>I just know that it is available under free BSD license.
>I want to know that is it available as a free download.Can I download the server and a compatible client ?
>are the APIs of the server available?
>How many simlutaneuos users does it support.
>Does it supports group chat and multilanguage chatting.

Twisted Words provides a server accessible via IRC and PB. Any IRC client should be able to connect to it. The PB interface allows for easy programmatic access. It does support groups. It uses unicode internally, and transcodes messages received/delivered via IRC. The PB interface is just natively unicode.

It is written in a way intended to make it easy to plug in new access mechanisms. For example, one such plugin that has already been written is a Nevow LivePage-based web interface.

Jp



------------------------------

_______________________________________________
Twisted-Python mailing list
Twisted-Python at twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


End of Twisted-Python Digest, Vol 17, Issue 12
**********************************************

		
---------------------------------
 Start your day with Yahoo! - make it your home page 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20050814/62d0e620/attachment.htm 


More information about the Twisted-Python mailing list