Skip to main content

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())

Metadata

Release files for asyncjob 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for asyncjob 0.1.2
File Interpreter ABI Platform
asyncjob-0.1.2-py3-none-any.whl Python 3 none any Details

Release files / asyncjob-0.1.2-py3-none-any.whl

Download URL asyncjob-0.1.2-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6aab4a73850dadfd25ba22330b975d72ee065cbe8af348c5e8561f35ac251fd
BLAKE2b-256 checksum
How to use checksums
bec32def8761cdbbfdc61e81a27fe85044fd62f124801adc1d513a12973abc8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page