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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
asyncjob-0.1.2-py3-none-any.whl
(20.1 kB
view details)
File details
Details for the file asyncjob-0.1.2-py3-none-any.whl.
File metadata
- Download URL: asyncjob-0.1.2-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6aab4a73850dadfd25ba22330b975d72ee065cbe8af348c5e8561f35ac251fd
|
|
| MD5 |
9e739831a03ae571c995e25b0e8fff26
|
|
| BLAKE2b-256 |
bec32def8761cdbbfdc61e81a27fe85044fd62f124801adc1d513a12973abc8e
|