Skip to main content

A task flow in Python with do and undo

Project description


A task flow in Python with do and undo.


from __future__ import print_function
from pyundo import TaskBase, LineFlow

class Task(TaskBase):
    def __init__(name): = name

    def do(self):
        print("Do the task: {0}".format(

    def undo(self):
        print("Undo the task: {0}".format(

def main():
    flow = LineFlow()

if __name__ == "__main__":

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyundo, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size pyundo-0.1.tar.gz (6.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page