Task manager for python
Project description
Tasker
Task manager for python
Quickstart
import sys
import time
from tasker.manager import Manager
from tasker.task import Task
if __name__ == "__main__":
def example1(attached_outstream = sys.stdout):
print("1", file=attached_outstream)
time.sleep(1)
print("2", file=attached_outstream)
time.sleep(1)
print("3", file=attached_outstream)
def example2(attached_outstream = sys.stdout):
print("console 2", file=attached_outstream)
manager = Manager()
manager.run_attached_stream()
manager.run_task(Task(example1))
time.sleep(1)
manager.run_task(Task(example2))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tskmanager-1.0.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for tskmanager-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4d55d8bf33d25c15ba2795118f066633c59bd51ed099b0e3b37e0c38379e4f5 |
|
MD5 | 4fa1b7fd2d356e90e5292dc9233181e0 |
|
BLAKE2b-256 | 62a4d16995197e6b7bc6f9aff3067bd49947edfb91080842016030875a4e99c7 |