Skip to main content

A state-based undo and redo functionality module for Python objects.

Project description

Unda

pip install unda

What's Unda?

Unda is a Python 3 module which provides state-based undo and redo functionality for Python objects using a special manager object.

It does this by creating and managing undo and redo stacks (via Python deques) for each object placed in its care. Each time an object in its care is updated, a deepcopy of that object is saved to its undo stack, essentially functioning as a "state" for that object. Calling an undo on that object simply returns its latest state in its undo stack.

Usage

Please refer to the (super simple) User Guide here.

Why is it called Unda?

Well, because I didn't want to call it Undo.

Standards

Unda is:

  • compact (it's import dependencies all come with the Python standard library),
  • well documented (via docstrings),
  • built using Python 3.7 (in PyCharm),
  • fully PEP-8 compliant (checked with PyCharm),
  • distributed under the MIT License and
  • uses type hinting (verified by MyPy).

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

unda-1.0.3.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

unda-1.0.3.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file unda-1.0.3.2.tar.gz.

File metadata

  • Download URL: unda-1.0.3.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.0

File hashes

Hashes for unda-1.0.3.2.tar.gz
Algorithm Hash digest
SHA256 ba3439806f34e8fc89c3fc5e65ee6b83dc5a6b19528ca0dbe4707fe2d8b0839e
MD5 2da695a9f87f03db9edaed3f13be446f
BLAKE2b-256 31fe5daae29043fffb0af504b639f1bfa36e67a12a2721d81f3db0b6fe5dfbf9

See more details on using hashes here.

File details

Details for the file unda-1.0.3.2-py3-none-any.whl.

File metadata

  • Download URL: unda-1.0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.0

File hashes

Hashes for unda-1.0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3697a48ca45a204afb9fd8e9366e468a52a9562f46dc6d1b1ebda7e94325f1f7
MD5 6e6c022d859851935e44db7dd3637865
BLAKE2b-256 8286b2ea0e354649ca1406342a578078578cefc4e0d291e509e04dd9470927a1

See more details on using hashes here.

Supported by

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