views:

1481

answers:

6

I'm playing around with Twisted and documentation found on their homepage doesn't answer all my questions.

The topic I am most interested at the moment is Twisted Application Framework. Also some open source servers using twisted framework would provide nice material for studying how it's all tied up together in a bigger project.

So far I've checked out iCal and read documentation on twisted website (3x) and few good articles I found in google.

A: 

Twisted is really pretty simple -- not much to it. Just start writing an app and show it to someone experienced and let them help you fix it up. You could also help document it as you learn stuff. You'll understand it quite a bit more that way. :)

Dustin
+6  A: 

The published book is pretty useless, in my opinion.

I recommend starting with the "deferred" docs online, and making absolutely sure you understand what asynchronous means and what deferreds are for. The best online docs that I've found are on the official site, though they could surely use some polishing:

http://twistedmatrix.com/trac/wiki/Documentation

The developers recommend reading the source as well, though if you have specific questions, I've found that the devs hang out and respond on both the IRC channel (#twisted on the freenode network) and the online mailing lists (There's a general and a twisted-web specific list)

As for blogs, there's at least the two below (both blogs are by twisted developers). I bet if you asked this same question on the twisted-python mailing list, you'd get a much better and more comprehensive answer than I could possibly give. :-)

http://oubiwann.blogspot.com/

http://glyph.twistedmatrix.com/

Nathan
+1  A: 

Divmod has some medium sized projects which use Twisted and might make good additions to your reading list. Additionally, the Twisted Community Code in Launchpad will give you a much longer list of Twisted-based projects to look at.

Jean-Paul Calderone
+1  A: 

I found the Twisted Network Programming Essentials book to be a useful guide when first learning Twisted. Although it is more of a Twisted "cookbook". Some of its "recipes" are useful.

Chris Miles
+1  A: 

There's an overview here: The Twisted Network Framework.

Bruce Eckel wrote a nice article that points out some of the weird names Twisted uses: Grokking Twisted. According to that article, there are some good examples in The Python Cookbook, 2nd Ed (O'Reilly).

Tom Dunham
+2  A: 

I think you need to get your concepts right to start with. I found this blog post to be helpful.

Introduction to Asynchronous Programming and Twisted

Ben Ahlan
Definitely a good read, thanks. I wish I had it back then. My concepts might be a bit mis-worded because when I asked my question I was just starting out with networking/twisted. There are still some things which block and therefore need to be put into separate thread.
Maiku Mori
+1 Good Recommendation. Heard its a very good tutorial.
jeffjose