https://github.com/s0rg/zipstream
Lazy stream-oriented zip file packer
https://github.com/s0rg/zipstream
Last synced: 7 months ago
JSON representation
Lazy stream-oriented zip file packer
- Host: GitHub
- URL: https://github.com/s0rg/zipstream
- Owner: s0rg
- License: mit
- Created: 2016-02-28T15:05:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-28T15:35:30.000Z (over 9 years ago)
- Last Synced: 2025-01-18T05:31:04.326Z (9 months ago)
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zipstream
Lazy stream-oriented zip file packer```python
import zipstream
s = zipstream.ZipStream()
s.write('hello.txt', 'hello'.encode('ascii'))
s.write('hello.txt', ' world'.encode('ascii'))
s.store('hello.txt') # flush packed data to underlying zip streamres = s.read()
with open('hello.zip', 'wb') as fd:
fd.write(res)```
# License
-------zipstream is released under the terms of the [MIT license](http://en.wikipedia.org/wiki/MIT_License>)