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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file aiocrontab-0.1.1.tar.gz.

File metadata

  • Download URL: aiocrontab-0.1.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.0 Darwin/19.3.0

File hashes

Hashes for aiocrontab-0.1.1.tar.gz
Algorithm Hash digest
SHA256 836e03e43b3ad82b661e2eb66f2fc4e8cd00707f3767e9da7190e0bfb8986028
MD5 d63c6b42a8baf3c5c07668595c5b849e
BLAKE2b-256 d2df3b99f0f9980639453a6d16242c849c276ccc914fc222cad678b548a63de9

See more details on using hashes here.

File details

Details for the file aiocrontab-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: aiocrontab-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.0 Darwin/19.3.0

File hashes

Hashes for aiocrontab-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c245a569994dbff148bdb03f2f2ad025da2a168bd72d40c29757b021e85b7880
MD5 d481c7874e36340a5f36f77b805990fd
BLAKE2b-256 5f134d92b3215aedabcf0d2d7e064df49cdbd865415183b87d35d97e79dfa2fb

See more details on using hashes here.

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