Documentation for stdnet 0.8.2. For development docs, go here.
Stdnet has been designed so that it can operate in fully asynchronous mode if the backend connection class is asynchronous. The redis backend is shipped with an asychronous client written using pulsar.
When using stdnet in asynchronous mode, a user writes generator method which pulsar treats as asynchronous coroutines. In this way adding instances of Found model in our tutorial application becomes:
fund = yield Fund(name='Markowitz', ccy='EUR').save()
or using a session:
with Fund.objects.session().begin() as t:
t.add(Fund(name='Markowitz', ccy='EUR'))
yield t.on_result