Skip to main content

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


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

If you're not sure about the file name format, learn more about wheel file names.

asyncjob-0.1.2-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

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

Hashes for asyncjob-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6aab4a73850dadfd25ba22330b975d72ee065cbe8af348c5e8561f35ac251fd
MD5 9e739831a03ae571c995e25b0e8fff26
BLAKE2b-256 bec32def8761cdbbfdc61e81a27fe85044fd62f124801adc1d513a12973abc8e

See more details on using hashes here.

Supported by

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