Skip to main content

DRB driver Zip

Project description

ZipNode Driver

This drb-driver-zip module implements access to zip containers with DRB data model. It is able to navigates among the zip contents.

Zip Factory and Zip Node

The module implements the basic factory model defined in DRB in its node resolver. Based on the python entry point mechanism, this module can be dynamically imported into applications.

The entry point group reference is drb.drivers.
The implementation name is zip.
The factory class is encoded into drb.drivers.zip.

The zip factory creates a ZipNode from an existing zip content. It uses a base node to access the content data using a streamed implementation from the base node.

The base node can be a DrbFileNode, DrbHttpNode, DrbTarNode or any other nodes able to provide streamed (BufferedIOBase, RawIOBase, IO) zip content.

GDAL locator (gdal-vsi)

A member node exposes a GDAL /vsizip locator through get_impl(str, 'gdal-vsi'), e.g. /vsizip{<archive>}/inner/file.jp2. The archive segment reuses the container's own gdal-vsi locator when it has one (e.g. an S3 object exposing /vsis3/...), so it composes for nested sources: /vsizip{/vsis3/bucket/key.zip}/inner.jp2. This lets a consumer such as drb-driver-image hand the member to GDAL for native range reads instead of extracting the whole member.

limitations

The current version does not manage child modification and insertion. ZipNode is currently read only.

Using this module

To include this module into your project, the drb-driver-zip module shall be referenced into requirements.txt file, or the following pip line can be run:

pip install drb-driver-zip

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

drb_driver_zip-1.5.0.tar.gz (36.5 kB view details)

Uploaded Source

File details

Details for the file drb_driver_zip-1.5.0.tar.gz.

File metadata

  • Download URL: drb_driver_zip-1.5.0.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/9.0.0 pkginfo/1.12.1.2 requests/2.34.2 requests-toolbelt/1.0.0 tqdm/4.68.3 CPython/3.11.15

File hashes

Hashes for drb_driver_zip-1.5.0.tar.gz
Algorithm Hash digest
SHA256 ec9abbb8a57aebd74c93417dddae10f32365f39937a8bca20135f1c6a05c59dd
MD5 07198515c69718e75c9b31f89b2938cf
BLAKE2b-256 a69f9dc22fb38e5fe33001091d7555926de571bb9d56f6f22a5cdf440098f22f

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