Hi Victor,
On 07/03/2014 15:11, Victor Stinner wrote:
Did you take a look at ayncio documentation? It looks a lot of *small* examples.
Nope, didn't realise it was in the docs yet!
http://docs.python.org/dev/library/asyncio-eventloop.html#example-hello-world-callback
http://docs.python.org/dev/library/asyncio-task.html#example-hello-world-coroutine
http://docs.python.org/dev/library/asyncio-task.html#example-future-with-run-until-complete
http://docs.python.org/dev/library/asyncio-task.html#example-parallel-execution-of-tasks
http://docs.python.org/dev/library/asyncio-stream.html#example
http://docs.python.org/dev/library/asyncio-subprocess.html#example
Awesome, will dive in. Thanks for the pointers :-)
Chris
There is also the examples/ directory of Tulip source code.
If you need more real-world examples, see third party projects using asyncio:
http://code.google.com/p/tulip/wiki/ThirdParty
Victor
2014-03-07 14:11 GMT+01:00 Chris Withers <[email protected]>:
Hi All,
I have a need to do a whole bunch or async stuff (lots of different
protocols, db access, file access, etc) and rather than return to twisted or
fiddle with tornado, I wanted to give tulip a go.
But, I'm a newbie/luddite when it comes to async loops, so I'm a little
scared...
Where can I find good docs/examples of the right way to be using things?
Chris
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk