Python twisted: where to start

PythonTwisted

Python Problem Overview


I am trying to start learning twisted for socket servers creation. I want to add some useful features (like auth, and maybe some other). Maybe someone can point me to a good tutorial which will help me to start (+ maybe some other ideas)

Python Solutions


Solution 1 - Python

Look here: Twisted Web in 60 seconds. That's a group of blog posts describing step by step how to do lots of common stuff with Twisted, all written by Jean-Paul Calderone, the biggest contributor of Twisted. It's really where you should start.

After that, look at the Twisted core documentation then refer to the API and then into the source code.

Have fun!

Solution 2 - Python

There's a great tutorial here - it's usually the one I send to new Twisty's :-)

http://krondo.com/blog/?page_id=1327

Its worth remembering that Twisted programming is more of a thinking paradigm than a programming one. Also, it's worth doing away with the client server model too - in Twisted there's just one broker talking in either direction to another.

Take a look here after the above too:

http://twistedmatrix.com/documents/current/core/howto/pb-intro.html

Enjoy :-)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionOleg TarasenkoView Question on Stackoverflow
Solution 1 - PythonEtienneView Answer on Stackoverflow
Solution 2 - PythonBen HughesView Answer on Stackoverflow