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.2.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tasker_python-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6ae934738f64db06014156c84ca25e682c6c55bd9aa911b0765f2494ba0939a9
MD5 ca553080c6397002d9d850a4d540e217
BLAKE2b-256 5890a2297217371a05eb02cd0ba24c0e5a75e00cceb0f01d63f3faff4fe64504

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tasker_python-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9346ce12be142da90a162fd44f1aa6b35c373f9e492d40d23ead03dfff69c13d
MD5 a80f18ab2f4f271cd0e67069876573ca
BLAKE2b-256 b31f176a15f299220e0aaff4c13b719a309c47635528bb9b020e83b9fa8cba5b

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