pyundo
A task flow in Python with do and undo.
Example
from __future__ import print_function
from pyundo import TaskBase, LineFlow
class Task(TaskBase):
def __init__(name):
self.name = name
def do(self):
print("Do the task: {0}".format(self.name))
def undo(self):
print("Undo the task: {0}".format(self.name))
def main():
flow = LineFlow()
flow.add(Task("task1"))
flow.add(Task("task2"))
flow.add(Task("task3"))
flow.execute()
if __name__ == "__main__":
main()
Metadata
Release files for pyundo 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyundo-0.1.tar.gz | 6.7 kB | Without provenance | Details for pyundo-0.1.tar.gz |
Release files / pyundo-0.1.tar.gz
| Download URL | pyundo-0.1.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72e8627bbf177aad53b069744d61a3632b0db5ecda710b3d2fb3ecc5ed69c2f6
|
|
BLAKE2b-256 checksum How to use checksums |
93250272a2865de0f99737937d9ef74d6441a90f2f8113694394fcaa1c20b6bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyundo 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.