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.4.0.tar.gz (32.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: drb_driver_zip-1.4.0.tar.gz
  • Upload date:
  • Size: 32.0 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.4.0.tar.gz
Algorithm Hash digest
SHA256 8a208d06f394040a40650e18fc8adf811e3cf2e17082a46dda66808b39959f1e
MD5 5f6d0c0ccf25ad563558f94a838dab31
BLAKE2b-256 d11d05639255d7d0865fc52f9ca3a2f8da3a54b815e2ae6e260bc34e42a8defc

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