Skip to main content

Crontab implementation in asyncio

Project description

AIOCRONTAB

Sample project to "flex" my asyncio skills.

Usage

import time

import aiocrontab


@aiocrontab.register("*/5 * * * *")
def print_every_five_mminutes():
    print(f"{time.ctime()}: Hello World!!!!!")

@aiocrontab.register("* * * * *")
def print_every_mminute():
    print(f"{time.ctime()}: Hello World!")


aiocrontab.run()

TODO

  • support for diff timezones
  • support for async task
  • take logger as dependency
  • Add more meaningful tests
  • fix mypy errors
  • document the codebase
  • document usage in readme

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

aiocrontab-0.1.1.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

aiocrontab-0.1.1-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

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