updateable-zip-file


Nameupdateable-zip-file JSON
Version 0.0.1 PyPI version JSON
download
home_page
SummaryA simple python package that builds on top of the standart library ZipFile, which allows user to update files inside a zip archive with ease.
upload_time2023-04-24 16:24:02
maintainer
docs_urlNone
author
requires_python>=3.7
licenseCreative Commons
keywords zipfile
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # UpdateableZipFile

`UpdateableZipFile` is a simple python package base on a stack [overflow answer](https://stackoverflow.com/a/35435548).

It implements a single class, `UpdateableZipFile`, that builds on top of the standart library `ZipFile`,
which allows user to update files inside a zip archive with ease.

## Example

```python
from updateablezipfile import UpdateableZipFile

with UpdateableZipFile("C:\Temp\Test2.docx", "a") as o:
    # Overwrite a file with a string
    o.writestr("word/document.xml", "Some data")
    # exclude an exiting file from the zip
    o.remove_file("word/fontTable.xml")
    # Write a new file (with no conflict) to the zp
    o.writestr("new_file", "more data")
    # Overwrite a file with a file
    o.write(r"C:\Temp\example.png", "word/settings.xml")
```

## Attribution

The implementation is was in no way or form written by me,
it is thanks to [Or Weis](https://stackoverflow.com/users/2899910/or-weis) answer on stack overflow.

As of my knowledge this is code is under the `Creative Commons` license,
based on the terms and conditions of stack overflow.

If you are the original author of the underlying implementation
please contact me and i will transfer the package over to you.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "updateable-zip-file",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "zipfile",
    "author": "",
    "author_email": "Michael van Straten <michael@vanstraten.de>",
    "download_url": "https://files.pythonhosted.org/packages/dc/41/8d91b978ecd0dc3e7a0cab38f222b9e1cf0988d122afbe29eaf386761ddb/updateable-zip-file-0.0.1.tar.gz",
    "platform": null,
    "description": "# UpdateableZipFile\n\n`UpdateableZipFile` is a simple python package base on a stack [overflow answer](https://stackoverflow.com/a/35435548).\n\nIt implements a single class, `UpdateableZipFile`, that builds on top of the standart library `ZipFile`,\nwhich allows user to update files inside a zip archive with ease.\n\n## Example\n\n```python\nfrom updateablezipfile import UpdateableZipFile\n\nwith UpdateableZipFile(\"C:\\Temp\\Test2.docx\", \"a\") as o:\n    # Overwrite a file with a string\n    o.writestr(\"word/document.xml\", \"Some data\")\n    # exclude an exiting file from the zip\n    o.remove_file(\"word/fontTable.xml\")\n    # Write a new file (with no conflict) to the zp\n    o.writestr(\"new_file\", \"more data\")\n    # Overwrite a file with a file\n    o.write(r\"C:\\Temp\\example.png\", \"word/settings.xml\")\n```\n\n## Attribution\n\nThe implementation is was in no way or form written by me,\nit is thanks to [Or Weis](https://stackoverflow.com/users/2899910/or-weis) answer on stack overflow.\n\nAs of my knowledge this is code is under the `Creative Commons` license,\nbased on the terms and conditions of stack overflow.\n\nIf you are the original author of the underlying implementation\nplease contact me and i will transfer the package over to you.\n",
    "bugtrack_url": null,
    "license": "Creative Commons",
    "summary": "A simple python package that builds on top of the standart library ZipFile, which allows user to update files inside a zip archive with ease.",
    "version": "0.0.1",
    "split_keywords": [
        "zipfile"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0a0c7a3ea7c98702afa1347a8526c5a43c9334eaf57fafa86ed126b577f6f0d0",
                "md5": "91e3a7aa2f2a965e4294f2aa4aae60d9",
                "sha256": "c6b1829638658c51b89b981625cb0715617a0dc9389676cab507762ac60015d6"
            },
            "downloads": -1,
            "filename": "updateable_zip_file-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "91e3a7aa2f2a965e4294f2aa4aae60d9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 3414,
            "upload_time": "2023-04-24T16:23:59",
            "upload_time_iso_8601": "2023-04-24T16:23:59.815173Z",
            "url": "https://files.pythonhosted.org/packages/0a/0c/7a3ea7c98702afa1347a8526c5a43c9334eaf57fafa86ed126b577f6f0d0/updateable_zip_file-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dc418d91b978ecd0dc3e7a0cab38f222b9e1cf0988d122afbe29eaf386761ddb",
                "md5": "3128053fa99485f791dec65f941576f0",
                "sha256": "d614e832a4c45203fc9d88353edb08a5b99128d30f648c83fb9b164646d4506e"
            },
            "downloads": -1,
            "filename": "updateable-zip-file-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "3128053fa99485f791dec65f941576f0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3176,
            "upload_time": "2023-04-24T16:24:02",
            "upload_time_iso_8601": "2023-04-24T16:24:02.427798Z",
            "url": "https://files.pythonhosted.org/packages/dc/41/8d91b978ecd0dc3e7a0cab38f222b9e1cf0988d122afbe29eaf386761ddb/updateable-zip-file-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-24 16:24:02",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "updateable-zip-file"
}
        
Elapsed time: 1.05793s