Tasker
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
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.5.tar.gz
(8.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tasker_python-0.1.5.tar.gz.
File metadata
- Download URL: tasker_python-0.1.5.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
916a8e3639b2a82deae017c1597feff4fe9bfa1ce476eec9acd530e2bbaff58a
|
|
| MD5 |
411af89ac7a6ae34ca6cb31720bcd345
|
|
| BLAKE2b-256 |
296d5e140b9e5f4540bff21ed65cbe4be0973f75582d58f7a11c75c94c55a142
|
File details
Details for the file tasker_python-0.1.5-py3-none-any.whl.
File metadata
- Download URL: tasker_python-0.1.5-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68ec2a3d860fbe5cce30f95dcd737cf97c1a735c83d7e4b9da62bc0a1bdc8f80
|
|
| MD5 |
83b5d61fc5a220d3c21d4fd441404198
|
|
| BLAKE2b-256 |
fba14a3b0746197c8f73788f39556df467f4995233cafc5a917c6b877f5cb8ef
|