twisted

Python Twisted using argparse module

Python Twisted using argparse module Question: I’m building Python Twisted applications and would like to use the argparse module to parse command line options, instead of the Twisted usage.Options, which seems kind of old school. I’d like to run the app with twistd, and am concerned about argparse interfering with twistd’s command line argument parsing. …

Total answers: 1

Python packages not installing in virtualenv using pip

Python packages not installing in virtualenv using pip Question: I’m having trouble installing twisted pip –version pip 1.1 from /home/chris/GL/GLBackend/glenv/lib/python2.7/site-packages/pip-1.1-py2.7.egg (python 2.7) Create a virtual environment chris@chris-mint ~/GL/GLBackend $ sudo virtualenv -p python2.7 glenv Running virtualenv with interpreter /usr/bin/python2.7 New python executable in glenv/bin/python2.7 Also creating executable in glenv/bin/python Installing distribute………………………………………………………………………………………………………………………………………………………………………done. Installing pip……………done. Just in …

Total answers: 2

When to use Tornado, when to use Twisted / Cyclone / GEvent / other

When to use Tornado, when to use Twisted / Cyclone / GEvent / other Question: Which of these frameworks / libraries would be the best choise for building modern multiuser web application? I would love to have an asynchronous webserver which will allow me to scale easly. What solution will give the best performance / …

Total answers: 4

How do I add two integers together with Twisted?

How do I add two integers together with Twisted? Question: I have two integers in my program; let’s call them “a” and “b“. I would like to add them together and get another integer as a result. These are regular Python int objects. I’m wondering; how do I add them together with Twisted? Is there …

Total answers: 3

Force python to use an older version of module (than what I have installed now)

Force python to use an older version of module (than what I have installed now) Question: My employer has a dedicated module1 we use for internal unit / system test; however, the author of this module no longer works here and I have been asked to test some devices with it. The problem is that …

Total answers: 5

Twisted or Celery? Which is right for my application with lots of SOAP calls?

Twisted or Celery? Which is right for my application with lots of SOAP calls? Question: I’m writing a Python application that needs both concurrency and asynchronicity. I’ve had a few recommendations each for Twisted and Celery, but I’m having trouble determining which is the better choice for this application (I have no experience with either). …

Total answers: 2

What's so cool about Twisted?

What's so cool about Twisted? Question: I’m increasingly hearing that Python’s Twisted framework rocks and other frameworks pale in comparison. Can anybody shed some light on this and possibly compare Twisted with other network programming frameworks. Asked By: Anton Gogolev || Source Answers: Well it’s probably according to taste. Twisted allows you to easily create …

Total answers: 2

twisted over https

twisted over https Question: Hi I have an app running with twisted. I want it to run over https instead of http. Where can I find a good example for that? Asked By: alexarsh || Source Answers: All you need to do is use reactor.listenSSL instead of reactor.listenTCP. http://twistedmatrix.com/documents/current/core/howto/ssl.html covers the basics of reactor.listenSSL. Answered …

Total answers: 3

Python 2.7.1 can't see Twisted

Python 2.7.1 can't see Twisted Question: I have a new MacBook Pro running OS X 10.6.6 / Snow Leopard — which ships with Python 2.6, although I have installed 2.7.1 Unfortunately, this doesn’t seem to see the Twisted install in the 2.6/Extras/lib/python/twisted directory, as I find I’m unable to import modules that I can see …

Total answers: 4

Threads vs. Async

Threads vs. Async Question: I have been reading up on the threaded model of programming versus the asynchronous model from this really good article. http://krondo.com/blog/?p=1209 However, the article mentions the following points. An async program will simply outperform a sync program by switching between tasks whenever there is a I/O. Threads are managed by the …

Total answers: 7