← Back to team overview

pyax team mailing list archive

[Bug 246998] Re: pyax needs threading to support concurrent calls

 

In lp:~lukasz-czyzykowski/pyax/asynchronous there is working solution
for making asynchronous (non blocking) queries from pyax. It's based on
Twisted framework, so to use it you have to run pyax from Twisted based
application.

Added code has tests, which will be run only if Twisted is installed.

For usage example please look into pyax/tests/query_test.py.
ClientQueryTestCase is responsible for functional testing asynchronous
queries.

The change added two additional arguments to query method:
- callback: callable which will be called with one argument (result) when query will be finished,
- errback: callable which will be called with one argument (Twisted fail object) when there will be error during query.

Besides that everything works as previous.

-- 
pyax needs threading to support concurrent calls
https://bugs.launchpad.net/bugs/246998
You received this bug notification because you are a member of pyax
Developers, which is the registrant for pyax.



References