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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tasker_python-0.1.3.tar.gz
  • Upload date:
  • Size: 7.9 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.3.tar.gz
Algorithm Hash digest
SHA256 8b0b976aa0b3c28eb72665e12346393b7a28eee7721735514c520b713e00e714
MD5 a250b5724f5fea9442605df7b2747007
BLAKE2b-256 f9ba225aed127720083690394006ba5b8154ed83d067948493d3fda7639a3e54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tasker_python-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 711042fa5182d0bec1ef011cd88e1025f852c482206eddfadb7244d1e18b110a
MD5 eaa1c07990ea0668cb60e0aeba59c20a
BLAKE2b-256 25ec4665821ca295373cb6cda659bbcbc47c1b7d1061e1af1daf178fc8befa62

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