Catalog PyPI
PACKAGE EXPLORERView in registry

aiocall

PyPI

The missing call methods for python asyncio

Versions collected1
Direct dependencies0From release 0.2
Last observed21 Oct, 11:42 UTC

README

Version 0.2 documentation
aiocall
=======

The missing call methods for python `asyncio <http://docs.python.org/3/library/asyncio>`_.

I found that python asyncio is lacking some basic methods to invoke calls:

.. code:: python

    call_soon_periodic(interval, callback, *args)
    call_later_periodic(delay, interval, callback, *args)

This module provides these methods.

Example:

.. code:: python

    import asyncio
    import aiocall

    def do_something(what):
        print('doing', what)

    timer = aiocall.call_later_periodic(0.5, 1.0, do_something, 'stuff')

    loop = asyncio.get_event_loop()
    loop.call_later(4.0, timer.cancel)
    loop.call_later(5.0, loop.stop)
    loop.run_forever()
    loop.close()

Output:

::

    doing stuff
    doing stuff
    doing stuff
    doing stuff

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.229 Dec 20160

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
waldhol/aiocall

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:42 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:c5544c3ede227ffcb047f88fd223518aa5cd7c6d6d99f33d7905619607432a19