Below is a list of examples from aioredis/examples (see for more).
Every example is a correct python program that can be executed.
:download:`get source code<../examples/connection.py>`
.. literalinclude:: ../examples/connection.py
:download:`get source code<../examples/pool.py>`
.. literalinclude:: ../examples/pool.py
:download:`get source code<../examples/commands.py>`
.. literalinclude:: ../examples/commands.py
:download:`get source code<../examples/transaction.py>`
.. literalinclude:: ../examples/transaction.py
:download:`get source code<../examples/pubsub.py>`
.. literalinclude:: ../examples/pubsub.py
:download:`get source code<../examples/scan.py>`
.. literalinclude:: ../examples/scan.py
Located in aioredis/examples/py34
:download:`get source code<../examples/py34/connection.py>`
.. literalinclude:: ../examples/py34/connection.py
:download:`get source code<../examples/py34/pool.py>`
.. literalinclude:: ../examples/py34/pool.py
:download:`get source code<../examples/py34/commands.py>`
.. literalinclude:: ../examples/py34/commands.py
:download:`get source code<../examples/py34/transaction.py>`
.. literalinclude:: ../examples/py34/transaction.py
:download:`get source code<../examples/py34/pubsub.py>`
.. literalinclude:: ../examples/py34/pubsub.py
:download:`get source code<../examples/py34/scan.py>`
.. literalinclude:: ../examples/py34/scan.py