Skip to main content

Simple indexing for working with files inside zipfiles

Project description

ZipItem

Simple, pure-python object package for dealing with many files inside of zipfiles.

Example Usage

from zipindex import ZipItem

# Single Instance
inst = ZipItem(zipfile_path="...", member_name="...")

# Simple Factory
members: dict[str, ZipItem] = ZipItem.factory(zipfile_path="...")

# Categorical Factory
categories: dict[str, ZipItem] = ZipItem.categorical_factory(zipfile_path="...", categories={"empty" : {0 : b""}})

# Use
with inst.open() as fid:
    data = fid.read()

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

zipindex-1.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

zipindex-1.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file zipindex-1.1.0.tar.gz.

File metadata

  • Download URL: zipindex-1.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for zipindex-1.1.0.tar.gz
Algorithm Hash digest
SHA256 468f324d8bb95fcb0041f9c700024c7ea906735ad979f42cdd6856bf714ee5f7
MD5 b45d056a0f3f6e6da58d0d515ad78f9d
BLAKE2b-256 d8cc16e54abae96d6ed4d4a08832265631ee12ee8f6a8a6acec07e678167d886

See more details on using hashes here.

File details

Details for the file zipindex-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: zipindex-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for zipindex-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2dd1d4c976ebb5fc5f5de1bd61d3b7d93a26cec3041397691c55223756e88080
MD5 18fe2bbab295b7e6734bde85a797bf3c
BLAKE2b-256 06b713987196550bd23299fdd4b666c60fea299c877561b6f1623a2ddf1bae30

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