twisted
Videos of every presentation of Journée Python 2007 are now online!
0As the title says it, each presentation was filmed, and has just been uploaded for everyone’s pleasure! Here is the two-part video presentation of Twisted, done by Michael SCHERER.
Oh, by the way, please take a minute to vote for your favourite Internet Engine!
Troll of the day: Why Ruby sucks and why Python rocks!
0I found a nicely written article about the problems with Ruby, written by a Ruby user, and why he found Python to be really good. There’s even a quote about Twisted!
And, there are a bunch of things available to a Python guy that Ruby just can’t compete with that are of particular interest to me. Two that come to mind immediately are Twisted and Stackless Python. The former was used by others at TurnTide for creating a really powerful SMTP testing tool and the latter was used by TurnTide’s competitor IronPort to build one of the industry’s best MTAs.
I didn’t knew that IronPort was done in Python, even in Stackless Python!
Extension for Twisted AMP to support dictionaries and lists
0Henrik Thostrup Jensen announced on the Twisted Users mailing list he made two extensions for the Twisted AMP protocol.
Currently there are two types: A dictionary and a list. The types of the element must be specified (key and value can be different in the dictionary), otherwise they are free form, i.e., the keys in the dictionary can have any name, and the list can be of any size. The types can be nested, e.g., you can create a list of list of strings. I use (or will) the latter to return a query result, for which I do not know the row size. This is currently impossible (AFAICT), in the otherwise excellent AMP protocol.
You can get them on http://www.cs.aau.dk/~htj/code/amptypes-0.1.tar.gz
For people that live under a rock, AMP is a new communication protocol for Twisted (added in Twisted 2.5) much lighter/simpler than PB. It is just a request/response protocol over a persistent connection.
Making and deploying a Twisted project as a service under Windows
0What is the goal?
The goal is to implement a program in Python+Twisted (using PB for network access) under Windows XP or 2000+, that can be run before a user logs on, so it has to be a windows service, launched automatically, at boot. Another goal is to show some developement patterns in Twisted. You will find a lot of ‘theoretical’ patterns about how to make singletons/borgs, proxy, and stuff, but I never found patterns about ‘Twisted code’, except for the wonderful ‘finger tutorial’ by the squishy moshez. This tutorial can be split in two parts: The first one is about writing a good skeleton for your Twisted development. The second part is about making a Windows service.
Note that these instructions (the service building part) will not work under Windows 98, 95 or older. (more…)
Twisted Weekly News #11
0Twisted Weekly News #11
Author: Lior Gradstein
Contact: lior@gradstei[email protected]
Revision: 1.0
Date: 2004/2/17 14:13:20
Copyright: © The Twisted Community
Contents
- The Twisted Weekly News
- Discussions
- Articles/Sites related to Twisted
- Cool Things of the Week
- New/Updated Cool Software
- Current releases
Twisted Weekly News #9
0Twisted Weekly News #9
Author: Lior Gradstein
Contact: [email protected]
Revision: 1.0
Date: 2003-12-14
Copyright: © The Twisted Community
Contents
* The Twisted Weekly News
* Discussions
* Progress
* Cool Thing of the Week
* Current releases
If you have any new information, ideas, announcements for the next TWN, please write to me,
The Twisted Weekly News
9th Issue. Sunday, December 14, 2003
QOTW:
Discussions
* http://twistedmatrix.com/pipermail/twisted-python/2003-December/006692.html RodrigoB suggested to use Twisted for the refactoring of The Circle, a P2P app.
* http://twistedmatrix.com/pipermail/twisted-python/2003-December/006705.html Last week, someone asked for an example of a Jabber client using Twisted libs, darryl posted a reply this week. darryl posted another example using PEAK too (http://randomthoughts.vandorp.ca/syncato/WK/blog/671?t=projects)
* http://twistedmatrix.com/pipermail/twisted-python/2003-December/006723.html Cinober explains his discoveries on debugging Twisted code within Emacs. Itamar gave a more generic explanation on how to debug general python code (http://twistedmatrix.com/pipermail/twisted-python/2003-December/006724.html)
* http://twistedmatrix.com/pipermail/twisted-python/2003-December/006745.html Richard Livsey asked why his IRC bot gets disconnected without any possibility of reconnection after sending too much data to the server. Timothee Besset replied he should read the IRC RFCs, that explains that his IRC bot was banned (flooding protection) and that he should use a rate limiting algorithm which doesn’t yet exist in Twisted IRCClient implementation. Andrew Bennetts answered that, actually, there is a rate limiting method, but it is more a delay than a rate limitation (http://twistedmatrix.com/pipermail/twisted-python/2003-December/006749.html) which solved Richard’s problem.
Progress
* Twisted 1.1.1: Itamar announced Twisted 1.1.1 as the official new stable release (http://twistedmatrix.com/pipermail/twisted-python/2003-December/006731.html). The changes are mainly bugfixes and minor improvements. MSN8P support in the MSN protocol has been updated and Conch SSH agent client now supports SSH auth agent.
* Quotient 0.8.8: A new version (0.8.8) of Quotient (http://www.divmod.org/) has been released. The pace of releases is getting faster each week. In this release (except from bugfixes), the database has been simplified and throttling tools have been added. To show that Quotient can be used as a framework not just for email, a project planning tool has been started (Anvil).
Cool Thing of the Week
* Twisted-web split A new mailing list (http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web and stored on NNTP gmane.org) as well as a new IRC channel (irc://irc.freenode.net/#twisted.web) who focus on twisted.web and woven/nevow part of Twisted.
Current releases
* Twisted: 1.1.1 (released 2003-12-10)
* Quotient: 0.8.8 (released 2003-12-12)
* Twisted Java: 0.6.1 (released 2003-12-02)
Ok, that’s it for this week. Thanks for reading!
Lior Gradstein
Twisted Weekly News #10
0Twisted Weekly News #10
Author: Lior Gradstein
Contact: [email protected]
Revision: 1.0
Date: 2003-11-23
Copyright: © The Twisted Community
Contents
* The Twisted Weekly News
* Discussions
* Cool Thing of the Week
* Current releases
There wasn’t too much mail this week, so I merged the previous TWN with the current, as I was ill last week.
If you have any new information, ideas, announcements for the next TWN, please write to me,
The Twisted Weekly News
9&10th Issue. Sunday, December 28, 2003
QOTW::
http://twistedmatrix.com/pipermail/twisted-python/2003-December/006789.html From a mail by Alan McIntyre: “I just wanted to thank the Twisted developers for making such a cool piece of software. [...] Thanks to Twisted and Python, I was able to start from scratch and put together a server to present some of this data via XML-RPC in about 2 or 3 hours (and that includes looking up a lot of stuff in the documentation).”
Discussions
* http://twistedmatrix.com/pipermail/twisted-python/2003-December/006786.html Jonathan Simms asked for help on his new (new) ftp server code which is currently in sandbox. He asks for help to resolve some problems with authentication on the Windows side.
* http://twistedmatrix.com/pipermail/twisted-python/2003-December/006828.html More and more people are becoming interested in integrating Twisted stuff into their projects. Last week, RodrigB asked about The Circle. This week, Valentino Volonghi asks about the possibility (wish) to replace the pygame event loop with a Twisted reactor.
* http://twistedmatrix.com/pipermail/twisted-python/2003-December/006820.html Michal Pasternak made some tests on Twisted, and noticed some performance degradation after 40 simultaneous connections. Itamar replied there wasn’t anything hardcoded that would change Twisted behaviour above 40 simultaneous connections.
Cool Thing of the Week
* Treasure of code examples and tutorials for nevow (http://www.livejournal.com/users/fzzzy/) fzZzy updated his new blog on LiveJournal with a lot of code samples he wrote for people who asked questions on irc. The second lecture he gave on irc is also available (http://soundfarmer.com/content/logs/NevowLecture2-121503.txt). With these docs and the previous more “in-depth” documentation from justinj (http://stewstuff.com/doc/nevow.xhtml) you do not any excuse for not learning nevow!
* SFTP support in Zope (using Twisted!) (http://twistedmatrix.com/pipermail/twisted-python/2003-December/006839.html) Fred L. Drake, Jr. wrote some support (http://cvs.zope.org/Packages/SFTPGateway/)for the sftp protocol to be included in Zope. The result may be available as a separate product in a near future.
* Impacket (http://oss.corest.com/projects/impacket.html) Not related to Twisted, but interesting anyway.Itamar recommended us to take a look at this python library which provides low-level programmatic access to network packets (tcp, udp, etc.). There is also a python pcap implementation on their web site.
* Reminder about the web forum (http://twisted.banquise.org/) May I remind you that a web interface exists for those that prefer reading informations online? We’re barely 8 now, but nobody posts anything which can be discussed :-(
Current releases
* Twisted: 1.1.1 (released 2003-12-10)
* Quotient: 0.8.8 (released 2003-12-12)
* Twisted Java: 0.6.1
Ok, that’s it for this week. Thanks for reading!
Lior Gradstein
Twisted Weekly News #8
0Twisted Weekly News #8
Author: Lior Gradstein
Contact: [email protected]
Revision: 1.0
Date: 2003-11-23
Copyright: © The Twisted Community
Contents
* The Twisted Weekly News
* Discussions
* Progress
* Cool Thing of the Week
If you have any new information, ideas, announcements for the next TWN, please write to me,
The Twisted Weekly News
8th Issue. Sunday, December 7, 2003
QOTW:
Discussions
* Moshe Zadka wrote a article (http://www.livejournal.com/users/moshez/5536.html), about the usefulness to change the page-file paradigm, and use class-page instead.
Progress
* A new version (0.8.6) of Quotient (http://www.divmod.org/) has been released (Editing of preferences via FreeForm, Tests,Improved table sorting,People and contacts,Inbox manager,Trash Manager,Compose and send messages with attachments, Password recovery,Thumbnailing,STUN server,Numerous tweaks and fixes).
Cool Thing of the Week
* Draft of documentation for nevow (http://stewstuff.com/doc/nevow.xhtml): A first start at a documentation for the new web piece of Twisted.
Ok, that’s it for this week. Thanks for reading!
Lior Gradstein
Twisted Weekly News #7
0Twisted Weekly News #7
Author: Lior Gradstein
Contact: [email protected]
Revision: 1.0
Date: 2003-11-23
Copyright: © The Twisted Community
Contents
* The Twisted Weekly News
* Discussions
* Progress
* Cool Thing of the Week
I’ll try to keep the pace with the TWN, continuing the work of Chris Armstrong. Thanks to Noa Harvey who is correcting my english as it is not my primary language.
The Twisted Weekly News
7th Issue. Sunday, November 23, 2003
QOTW:
when someone calls our language a “Scripting language” ;)
Discussions
XXXX
Progress
* A new version (0.8.0) of Quotient (http://www.divmod.org/) has been released (Editing of preferences via FreeForm, Tests,Improved table sorting,People and contacts,Inbox manager,Trash Manager,Compose and send messages with attachments, Password recovery,Thumbnailing,STUN server,Numerous tweaks and fixes).
Cool Thing of the Week
* TouRSSt, by Tv (http://toursst.sourceforge.net/): TouRSSt tours the web so you don’t have to. Run frequently, it pulls new RSS news items from a number of channels and puts them where you want. The project existed for a long time, but it was revived on November, 2.
* Informant, by Nafai (http://www.travishartwell.net/projects/informant/): First version of Informant, an graphical event logger that makes notifications (Gnome based, but a standalone version is possible).
* Twibbler (http://slarty.polito.it:8069/~sciasbat/wiki/moin.cgi/twibber): Twibber is a Python package aimed at handling the Jabber/XMMP protocol in a completely asynchronous way, with no need of threads.
* Web Forum: A web forum has been created to allow people that like clicking to discuss more about Twisted! Its url is http://twisted.banquise.org/
Ok, that’s it for this week. Thanks for reading!
Lior Gradstein









Recent Comments