undo-code


Nameundo-code JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2024-12-17 02:14:08
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseGPL-3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # undo-code

[![PyPI version](https://badge.fury.io/py/undo-code.svg)](https://badge.fury.io/py/undo-code)

`undo-code` is a Python package that allows developers to easily integrate undo/redo functionality into their projects. This package simplifies the process of managing changes and restoring previous states in applications, making it especially useful for text editors, graphic design tools, and other software requiring history tracking.

## Features

- **Simple API**: Easy-to-use methods for adding, undoing, and redoing actions.
- **Flexible Integration**: Works seamlessly with various data structures and custom objects.
- **Lightweight**: Minimal dependencies and efficient performance.

## Installation

Install `undo-code` using pip:

```bash
pip install undo-code
```

## Usage

Here's a basic example to get started:

```python
from undo_code import UndoManager

# Create an UndoManager instance
undo_manager = UndoManager()

# Define actions
def add_action():
    print("Action added!")

def remove_action():
    print("Action undone!")

# Add an action to the undo stack
undo_manager.add_action(add_action, remove_action)

# Undo the last action
undo_manager.undo()

# Redo the undone action
undo_manager.redo()
```

## Contributing

Contributions are welcome! To contribute:

1. Fork the repository.
2. Create a new branch for your feature: `git checkout -b feature-name`.
3. Commit your changes: `git commit -m 'Add some feature'`.
4. Push to the branch: `git push origin feature-name`.
5. Open a pull request.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Contact

If you have any questions or feedback, feel free to reach out to [Your Email or GitHub Profile].

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "undo-code",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "None",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/66/28/f9f1128365731fc0a646fc1547c2b2ddbf1bbc04fca2c36c6ceed87646d6/undo_code-1.0.0.tar.gz",
    "platform": null,
    "description": "# undo-code\n\n[![PyPI version](https://badge.fury.io/py/undo-code.svg)](https://badge.fury.io/py/undo-code)\n\n`undo-code` is a Python package that allows developers to easily integrate undo/redo functionality into their projects. This package simplifies the process of managing changes and restoring previous states in applications, making it especially useful for text editors, graphic design tools, and other software requiring history tracking.\n\n## Features\n\n- **Simple API**: Easy-to-use methods for adding, undoing, and redoing actions.\n- **Flexible Integration**: Works seamlessly with various data structures and custom objects.\n- **Lightweight**: Minimal dependencies and efficient performance.\n\n## Installation\n\nInstall `undo-code` using pip:\n\n```bash\npip install undo-code\n```\n\n## Usage\n\nHere's a basic example to get started:\n\n```python\nfrom undo_code import UndoManager\n\n# Create an UndoManager instance\nundo_manager = UndoManager()\n\n# Define actions\ndef add_action():\n    print(\"Action added!\")\n\ndef remove_action():\n    print(\"Action undone!\")\n\n# Add an action to the undo stack\nundo_manager.add_action(add_action, remove_action)\n\n# Undo the last action\nundo_manager.undo()\n\n# Redo the undone action\nundo_manager.redo()\n```\n\n## Contributing\n\nContributions are welcome! To contribute:\n\n1. Fork the repository.\n2. Create a new branch for your feature: `git checkout -b feature-name`.\n3. Commit your changes: `git commit -m 'Add some feature'`.\n4. Push to the branch: `git push origin feature-name`.\n5. Open a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contact\n\nIf you have any questions or feedback, feel free to reach out to [Your Email or GitHub Profile].\n",
    "bugtrack_url": null,
    "license": "GPL-3",
    "summary": null,
    "version": "1.0.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6628f9f1128365731fc0a646fc1547c2b2ddbf1bbc04fca2c36c6ceed87646d6",
                "md5": "16f328b7d7a4d0c5b076a39dcc15e157",
                "sha256": "622cfa6db9540280de0530de12b9a87f8793c57d4fdcd191a736e422d19f3169"
            },
            "downloads": -1,
            "filename": "undo_code-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "16f328b7d7a4d0c5b076a39dcc15e157",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 108431,
            "upload_time": "2024-12-17T02:14:08",
            "upload_time_iso_8601": "2024-12-17T02:14:08.859535Z",
            "url": "https://files.pythonhosted.org/packages/66/28/f9f1128365731fc0a646fc1547c2b2ddbf1bbc04fca2c36c6ceed87646d6/undo_code-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-17 02:14:08",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "undo-code"
}
        
Elapsed time: 0.39999s