Skip to main content

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


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)

Uploaded Source

Built Distribution

tskmanager-1.0.1-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page