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.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for tskmanager-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e116c03628da85029111103fd22ab86e647c844c6da65497aeb60a90897e3e49 |
|
MD5 | 15014d363569224b727c5cddf5b9c30e |
|
BLAKE2b-256 | e01a59b998586a14468a933a211ec76f890829ce8cfd3a8895ff255aec066172 |