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
Built Distribution
File details
Details for the file unzip-http-0.2.tar.gz
.
File metadata
- Download URL: unzip-http-0.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60b673292b2069a64991744a890f10193c79f43df12df7553c4dea42483c3391 |
|
MD5 | 393b6ce592d3ff51f23b96b1877f334c |
|
BLAKE2b-256 | a3f2cc79ad8fb2ecf3ed659d2116eebe61074b62b5ffb0740030195619d4e955 |
File details
Details for the file unzip_http-0.2-py3-none-any.whl
.
File metadata
- Download URL: unzip_http-0.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd5eadc055643aece42a41fa947d83c8595a6c0b708757d90be03f6ca26d9ae6 |
|
MD5 | 29f1484b3de059a34504b63d092128e5 |
|
BLAKE2b-256 | 97a7758ef676c99f7a756d3e7c9cdbfd363f26b35758db4714888224d4a56d47 |