sozipfile
sozipfile is a fork of Python zipfile module, from its implementation in CPython 3.11, which implements the SOZip optimization, when writing deflate compressed files whose size exceeds the chunk size (defaults to 32768 bytes). It also implements efficient seeking within a SOZip file.
Example to generate a SOZip-optimized file:
import sozipfile.sozipfile as zipfile
with zipfile.ZipFile('my.zip', 'w',
compression=zipfile.ZIP_DEFLATED,
chunk_size=zipfile.SOZIP_DEFAULT_CHUNK_SIZE) as myzip:
myzip.write('my.file')
Example to check if a file within a ZIP is SOZip-optimized:
import sozipfile.sozipfile as zipfile
with zipfile.ZipFile('my.zip', 'r') as myzip:
if myzip.getinfo('my.gpkg').is_sozip_optimized(myzip):
print('SOZip optimized!')
Available on pypi:
pip install sozipfile
Metadata
Release files for sozipfile 0.3.2
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 | |
|---|---|---|---|---|
| sozipfile-0.3.2.tar.gz | 32.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sozipfile-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 63.4 kB
Release files / sozipfile-0.3.2.tar.gz
| Download URL | sozipfile-0.3.2.tar.gz |
|---|---|
| Size | 32.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a06a981ac3ca5389a6e88fdd3633285f012918fc083f50b680d539ce460fa2ad
|
|
BLAKE2b-256 checksum How to use checksums |
00ce3ba93f6d3e34b66e5b51eb3101cfb748ab5a5ea88a7de4db265998dc7ab1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.8.1 requests/2.25.1 setuptools/69.0.2 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|
Release files / sozipfile-0.3.2-py3-none-any.whl
| Download URL | sozipfile-0.3.2-py3-none-any.whl |
|---|---|
| Size | 31.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee7f7e7ddd0ff49543084883958961620d313fb91aac3e021d756c576d5c3825
|
|
BLAKE2b-256 checksum How to use checksums |
ab8d2ce407e9bc51969bb122e9cfa5f8199cb055951135608275d30deea3b02b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.8.1 requests/2.25.1 setuptools/69.0.2 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|
Security for sozipfile 0.3.2
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.