Skip to main content

Context manager for asyncio event loop.

Project description


Context loop.


Paweł Zadrożny @pawelzny <>

CI Status Documentation Status PyPI Repository Status Release Status Project Status Supported python versions Supported interpreters License


  • Work with sync and async frameworks

  • Schedule tasks to existing loop or create new one

  • No need to understand how async works

  • No callbacks required

  • Run async tasks whenever and wherever you want


pip install context-loop



Read full documentation at

Quick Example

>>> async def coro():
...     return await something_from_future()
>>> import cl.Loop
>>> with cl.Loop(coro(), coro(), coro()) as loop:
...    result = loop.run_until_complete()
>>> result
['success', 'success', 'success']

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

context-loop-0.1.1.tar.gz (26.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page