ZipStreamer is a Python library for generating ZIP files on-the-fly with ZIP
file size information.
This library was implemented using logic from Python's `zipfile` library and
Golang's `archive/zip` library.
```python
z = ZipStream(files=[
ZipFile('file.txt', 4, lambda: StringIO('test'), None, None),
ZipFile('emptydir/', None, None, None, None),
ZipFile('dir/remote.txt', remote_file_size, get_remote_file, None, None),
])
size = z.size()
res = Response(z.generate(), mimetype='application/zip')
res.headers['Content-Length'] = str(size)
```
## Installation
```
pip install zipstreamer
```
## Examples
```
pip install flask requests
PYTHONPATH=. FLASK_APP=examples/flask_example.py flask run
```
## Testing
```
pipenv install --dev --skip-lock
pipenv run nosetests
```
Testing multiple versions:
```
pip install pyenv tox tox-pyenv
pyenv install 2.7.14
pyenv install 3.4.8
pyenv install 3.5.5
pyenv install 3.6.4
pyenv install 3.7-dev
pyenv local 2.7.14 3.4.8 3.5.5 3.6.4 3.7-dev
tox
```
Metadata
Release files for zipstreamer 0.1.3
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 |
|---|---|---|---|---|
| zipstreamer-0.1.3.tar.gz | 5.9 kB | Without provenance | Details for zipstreamer-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zipstreamer-0.1.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for zipstreamer-0.1.3-py2.py3-none-any.whl |
Total release size: 12.4 kB
Release files / zipstreamer-0.1.3.tar.gz
| Download URL | zipstreamer-0.1.3.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e170c5d89325fbb4bda2b7be1c14da297e774c23777d3575a722298ff8afae2c
|
|
BLAKE2b-256 checksum How to use checksums |
f82ff7f236c12d69e9abba1eef5154be7816de9c3cb5c4d5f521628c97fda1b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / zipstreamer-0.1.3-py2.py3-none-any.whl
| Download URL | zipstreamer-0.1.3-py2.py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
3958dc9d44a7634d010b365bc33c0fee39faeedca6818ba16be38e69598c062a
|
|
BLAKE2b-256 checksum How to use checksums |
96fd528dec8fed7f35126074858dcc52533b9465878cf12b5bae5bfa6922e36b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for zipstreamer 0.1.3
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.