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 [-l] [-f] [-o] <url> <filenames..>
Extract from a remote .zip at <url> to stdout.
A filename can be a wildcard glob; all matching files are extracted in this case.
Specify multiple filenames as distinct arguments (separated with spaces on the command line).
Note: HTTP server must send Accept-Ranges: bytes and Content-Length in headers (most do).
Options:
-l: List files in remote .zip file (default if no filenames given)-f: Recreate folder structure from .zip file when extracting (instead of extracting files directly to the current directory)-o: Write files to stdout (if multiple files, concatenate them in zipfile order)
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.
Similar Libraries
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unzip_http-0.7.tar.gz.
File metadata
- Download URL: unzip_http-0.7.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
937996fe7c8fa9c43c2464f7d99ed31dce1aed168b77e5b6633ab962ffd23d77
|
|
| MD5 |
79c767f3bcf0583b21544dfefbecaf82
|
|
| BLAKE2b-256 |
49603e961273c2ba1179a2dcab8ff6e85228f7b9370544f71067c6c55c9a331e
|
Provenance
The following attestation bundles were made for unzip_http-0.7.tar.gz:
Publisher:
publish.yml on saulpw/unzip-http
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
unzip_http-0.7.tar.gz -
Subject digest:
937996fe7c8fa9c43c2464f7d99ed31dce1aed168b77e5b6633ab962ffd23d77 - Sigstore transparency entry: 974693496
- Sigstore integration time:
-
Permalink:
saulpw/unzip-http@6723cbaa0f8c2f836901d3ad7650f1753671ca26 -
Branch / Tag:
refs/tags/v0.7 - Owner: https://github.com/saulpw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6723cbaa0f8c2f836901d3ad7650f1753671ca26 -
Trigger Event:
push
-
Statement type:
File details
Details for the file unzip_http-0.7-py3-none-any.whl.
File metadata
- Download URL: unzip_http-0.7-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b3736e5a641fe09c0fdd107b2d7e2f6e346f8a1c221167f9c1e77c238ffcfe8
|
|
| MD5 |
24a32d0a7c860b4fc902a4d29a81c6be
|
|
| BLAKE2b-256 |
1a0e83f1a2cf133ab323f6ae2e52b86247ba25759ac6f830d20e161d8a3e2f3f
|
Provenance
The following attestation bundles were made for unzip_http-0.7-py3-none-any.whl:
Publisher:
publish.yml on saulpw/unzip-http
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
unzip_http-0.7-py3-none-any.whl -
Subject digest:
9b3736e5a641fe09c0fdd107b2d7e2f6e346f8a1c221167f9c1e77c238ffcfe8 - Sigstore transparency entry: 974693533
- Sigstore integration time:
-
Permalink:
saulpw/unzip-http@6723cbaa0f8c2f836901d3ad7650f1753671ca26 -
Branch / Tag:
refs/tags/v0.7 - Owner: https://github.com/saulpw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6723cbaa0f8c2f836901d3ad7650f1753671ca26 -
Trigger Event:
push
-
Statement type: