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
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
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 082edc116ad819aab6706cee944deb3a3159dfa761afa4631b94c04b652c31eb |
|
MD5 | 826e14b35dcc8529c3bfd9531c6e0492 |
|
BLAKE2b-256 | 202e3cbfe7210cbd8cc977f13b7bfc6b8af26e6d9286ae062f98273035fe2ed3 |
File details
Details for the file tasker_python-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: tasker_python-0.1.4-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ded82284f0840c1f691021a34ee59b434fee789b9d14e37f50d1bb976212531b |
|
MD5 | c858046569f2b1400346699b12307048 |
|
BLAKE2b-256 | 40e28279531d05994de887d67b296ff4935a3431d9221c03e10c7239b941f1db |