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 <url.zip> <filenames..>

Extract from a remote .zip at <url> 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.4.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

unzip_http-0.4-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file unzip-http-0.4.tar.gz.

File metadata

  • Download URL: unzip-http-0.4.tar.gz
  • Upload date:
  • Size: 5.9 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

Hashes for unzip-http-0.4.tar.gz
Algorithm Hash digest
SHA256 7c24c6f1d79e957b3ea3b8619d02c15a6233f76a7c73588282c914571b70f6c2
MD5 b335479aa421cb155b687703e2ed4cf2
BLAKE2b-256 cba623ee40eb620e8563b82f2eab9cbae62aa9a735c31ce2068432bc5854b38b

See more details on using hashes here.

File details

Details for the file unzip_http-0.4-py3-none-any.whl.

File metadata

  • Download URL: unzip_http-0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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

Hashes for unzip_http-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b678729d0f365f4bdc2a4a87a10e3879c993c8d7cbe76d3d027d8ace21b45f28
MD5 5cc4604fc04c999413910cdbf06edb79
BLAKE2b-256 4ebb5c8812b4b62f6c4b6d9cee6a23e68556309457eb5db97d30fb0d48f2c2a6

See more details on using hashes here.

Supported by

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