scheduler schedules python tasks to run at some delay time later.
Usage
install
pip install TaskScheduler
run some tasks some time later
from scheduler import Scheduler
def hello_world(words):
print "Hello World! ", words
s = Scheduler()
s.daemon = True # so the thread plays nice with shut down
# Add a task before starting the execution thread
s.schedule_task(5, hello_world, (" 5 seconds later",))
# start the execution thread
s.start()
# Add more tasks
task = s.schedule_task(3, hello_world, ("Another Task",))
# reschedule a task
task.delay = 4
s.reschedule_task(task, )
# delete a task
s.remove_task(task)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
TaskScheduler-0.0.4.tar.gz
(2.7 kB
view details)
File details
Details for the file TaskScheduler-0.0.4.tar.gz.
File metadata
- Download URL: TaskScheduler-0.0.4.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f671dea43afe23503dbd9e47acfc85ba62e9d3377bc0820f1a33e5fd4d646aa
|
|
| MD5 |
9c7d2e516ee68a0d309dfcdb6cdae0f6
|
|
| BLAKE2b-256 |
ea52029530c678e0eec81af83d47f947949b0044a65d6e1def67109c0246560f
|