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 60 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.4.tar.gz (3.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: cronaion-1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 366101069d3d60e22ce583f600f073c3f2885876fa5855728fdd2ea84787f990
MD5 d3f13ad478575c7c8ab038e8b85b2261
BLAKE2b-256 6bbd19aa31cf3385538a2d7abcf8b033638dc0a4984a44bd12b1f2818e816a83

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