Skip to main content

Scheduler for python tasks.

Project description

Cronaion

Watcher

  • A scheduler for your python programs.
  • Easily schedule with a cronjob string.
  • Very light on cpu as there are just sleeps called, not a while loop checker.
  • Everything is run as a thread.
    • Note this means that you can easily use objects and non-picklable data types. However this means programs using Aion will only run on a single GIL and will be bound to a single core on a CPU. Process intensive tasks should not be used with Aion.

Located on pypi Here

  • Install with a pip install cronaion

Example Usage

from cronaion import Aion

watcher = Aion()

@watcher.watch("1 3 * * 0")
def check_the_mail():
    print("I will run at 03:01 every Sunday.")

@watcher.watch("*/1 * * * *")
def blink_my_eyes():
    print("I will run every 30 seconds.")


if __name__ == "__main__":
    watcher.start()

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

cronaion-1.0.3.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file cronaion-1.0.3.tar.gz.

File metadata

  • Download URL: cronaion-1.0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for cronaion-1.0.3.tar.gz
Algorithm Hash digest
SHA256 679e55f25495a40bf5a074270db1051a3edd2fc83e3c7e72bb9e84731ff3afa0
MD5 ab91b0108054abfe6fecfb064c942471
BLAKE2b-256 d195ae291c9d0af1837b0c147e7da667e9646b883e6c2e55cd6a79da8a03aa0c

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