Skip to main content

Simple task automation framework for Python, integrating Rocketry for advanced scheduling and Apprise for multi-platform notifications. Wraps Python functions and shell commands into easily manageable and schedulable units.

Project description

Tasker

PyPI version Supported versions Downloads license

Simple task automation framework for Python, integrating Rocketry for advanced scheduling and Apprise for multi-platform notifications. Wraps Python functions and shell commands into easily manageable and schedulable units.

Installation

From PyPi

pip install tasker-python

From source

pip install git+https://github.com/zigai/tasker.git

Example

from tasker import Channel, CommandLineTask

task = CommandLineTask(
    name="hello-world",
    command="echo 'Hello World!'",
    notification_channels=[
        Channel("discord://...", events=["start", "success", "info", "fail"]), 
    ],
    stdout=True, # display stdout in notifications
)

task.exec() # run once

from tasker.scheduler import TaskScheduler, every
scheduler = TaskScheduler()
scheduler.schedule_task(task, every("10 seconds")) # run every 10 seconds
scheduler.run()

License

MIT License

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

tasker_python-0.1.4.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

tasker_python-0.1.4-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file tasker_python-0.1.4.tar.gz.

File metadata

  • Download URL: tasker_python-0.1.4.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for tasker_python-0.1.4.tar.gz
Algorithm Hash digest
SHA256 082edc116ad819aab6706cee944deb3a3159dfa761afa4631b94c04b652c31eb
MD5 826e14b35dcc8529c3bfd9531c6e0492
BLAKE2b-256 202e3cbfe7210cbd8cc977f13b7bfc6b8af26e6d9286ae062f98273035fe2ed3

See more details on using hashes here.

File details

Details for the file tasker_python-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for tasker_python-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ded82284f0840c1f691021a34ee59b434fee789b9d14e37f50d1bb976212531b
MD5 c858046569f2b1400346699b12307048
BLAKE2b-256 40e28279531d05994de887d67b296ff4935a3431d9221c03e10c7239b941f1db

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