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 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.1.tar.gz (4.4 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.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unzip-http-0.1.tar.gz
  • Upload date:
  • Size: 4.4 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.1.tar.gz
Algorithm Hash digest
SHA256 8beaf5a4f65da904386b6ac9c49f0d35ed197b4497564d727f14bc8829ce43c0
MD5 189f87376ee6d239e607f56b1b9c176d
BLAKE2b-256 59efdff28445926471c9b648f53e1fe16ef976fedf62f8ffc6f1661f734354b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unzip_http-0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5dd07c442f4db244839eda947ffa078aa8cbe19e7fc86e59e2e0f93f1a244fb2
MD5 08722b347a83682a286cb3333a239d2b
BLAKE2b-256 7ed6818169b5042a745a57f8c9a819fbc54eea688a268e0a72ae413777c03f5c

See more details on using hashes here.

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