Skip to main content

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

unzip_http-0.7.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unzip_http-0.7-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

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

Hashes for unzip_http-0.7.tar.gz
Algorithm Hash digest
SHA256 937996fe7c8fa9c43c2464f7d99ed31dce1aed168b77e5b6633ab962ffd23d77
MD5 79c767f3bcf0583b21544dfefbecaf82
BLAKE2b-256 49603e961273c2ba1179a2dcab8ff6e85228f7b9370544f71067c6c55c9a331e

See more details on using hashes here.

Provenance

The following attestation bundles were made for unzip_http-0.7.tar.gz:

Publisher: publish.yml on saulpw/unzip-http

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for unzip_http-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9b3736e5a641fe09c0fdd107b2d7e2f6e346f8a1c221167f9c1e77c238ffcfe8
MD5 24a32d0a7c860b4fc902a4d29a81c6be
BLAKE2b-256 1a0e83f1a2cf133ab323f6ae2e52b86247ba25759ac6f830d20e161d8a3e2f3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for unzip_http-0.7-py3-none-any.whl:

Publisher: publish.yml on saulpw/unzip-http

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page