{"id":22964778,"url":"https://github.com/michaelvanstraten/updateable-zip-file","last_synced_at":"2025-10-10T05:44:48.418Z","repository":{"id":209900446,"uuid":"632061933","full_name":"michaelvanstraten/updateable-zip-file","owner":"michaelvanstraten","description":"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.","archived":false,"fork":false,"pushed_at":"2024-06-02T05:22:37.000Z","size":4,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-08T21:08:43.025Z","etag":null,"topics":["file-modification","files","zipfiles"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/updateable-zip-file/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelvanstraten.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-04-24T16:20:29.000Z","updated_at":"2023-11-27T18:50:47.000Z","dependencies_parsed_at":"2023-11-29T18:46:58.927Z","dependency_job_id":null,"html_url":"https://github.com/michaelvanstraten/updateable-zip-file","commit_stats":null,"previous_names":["michaelvanstraten/updateable-zip-file"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelvanstraten%2Fupdateable-zip-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelvanstraten%2Fupdateable-zip-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelvanstraten%2Fupdateable-zip-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelvanstraten%2Fupdateable-zip-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelvanstraten","download_url":"https://codeload.github.com/michaelvanstraten/updateable-zip-file/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229749309,"owners_count":18118325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file-modification","files","zipfiles"],"created_at":"2024-12-14T20:12:25.396Z","updated_at":"2025-10-10T05:44:43.133Z","avatar_url":"https://github.com/michaelvanstraten.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelvanstraten%2Fupdateable-zip-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelvanstraten%2Fupdateable-zip-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelvanstraten%2Fupdateable-zip-file/lists"}