append-zip
Appends a file to a zip file, overwriting the existing file there if necessary
Performance
Not efficient; extracts all the files in the zip, copies over the new file, and compresses a brand new zip replacing the original one. You will need enough disk space to duplicate the zip file.
Caveats
for some reason, windows has a different file length after unzipping (by 10-20 bytes). So beware how this works on windows
Getting started
install
$ python3 -m pip install appendzip
from appendzip.appendzip import appendzip
# before appendzip calendar.txt in the zip archive test.zip contains 2021-01-02
# before appendzip calendar.txt outside the zip contains 2022-02-03
appendzip(
pathlib.Path('test.zip'),
pathlib.Path('calendar.txt'),
'calendar.txt'
)
# after appendzip calendar.txt inside the zip contains 2022-02-03
# after, there is still only one file in the zip archive test.zip
Metadata
Release files for appendzip 0.1.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 |
|---|---|---|---|---|
| appendzip-0.1.1.tar.gz | 3.7 kB | Without provenance | Details for appendzip-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| appendzip-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for appendzip-0.1.1-py3-none-any.whl |
Total release size: 7.1 kB
Release files / appendzip-0.1.1.tar.gz
| Download URL | appendzip-0.1.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f985d79afcad75d7e6025c801581f1558ef2d73e20c67cdb7a821ea9a9ea9017
|
|
BLAKE2b-256 checksum How to use checksums |
9d442f0a217a83107611a6546867d0d0af878aff8917eee673edee0290576865
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / appendzip-0.1.1-py3-none-any.whl
| Download URL | appendzip-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ada0e7e824736eebd36932455726651b83a0c3d3cb8be1411215ca631111d737
|
|
BLAKE2b-256 checksum How to use checksums |
96c0f4755c6a3a59ee7a33064372ed418fc86988b42041fb041171edf1a47213
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for appendzip 0.1.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.