extract files from .zip files over http without downloading entire archive
Project description
unzip-http
Extract individual files from .zip files over http without downloading the entire archive.
Install
pip install unzip-http
Usage
unzip-http <url.zip> <filenames..>
Extract from a remote .zip at to stdout.
If no filenames given, displays .zip contents (filenames and sizes).
Each filename can be a wildcard glob; all matching files are concatenated and sent to stdout in zipfile order.
Note: HTTP server must send Accept-Ranges: bytes
and Content-Length
in headers.
Python module unzip_http
import unzip_http
rzf = unzip_http.RemoteZipFile('https://example.com/foo.zip')
binfp = rzf.open('bar.bin')
txtfp = rzf.open_text('baz.txt')
Credits
unzip-http
was written by Saul Pwanson and made available for use under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
unzip-http-0.3.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for unzip_http-0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b5ce42af7ec23434c2f74edb0d24e2df9fc38a25a83d72a52f755f23858bd0a |
|
MD5 | 0db949339a20975ebbb3ffb8c1aa6145 |
|
BLAKE2b-256 | 13cb75ec89bc9c7b72c02f121d987dde88cf4655b3b9c4af223be54b1f500135 |