asyncjob is another simple scheduler for asyncio jobs
Project description
asyncjob
asyncjob - is just another simple scheduler for asyncio jobs.
Install
The package is available on PyPI.
# python3 -m pip install asyncjob
Very fast usage
import asyncio
import asyncjob
async def coro():
...
loop = asyncio.new_event_loop()
scheduler = asyncjob.Scheduler(loop)
job = [
[
loop.create_task(asyncio.sleep(2.0))
],
[
loop.create_task(coro())
]
]
scheduler.push_job(job)
try:
loop.run_until_complete(scheduler.run())
except KeyboardInterrupt as exc:
scheduler.cancel()
loop.run_until_complete(scheduler.wait_stopped())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
asyncjob-0.1.2-py3-none-any.whl
(20.1 kB
view hashes)