Simple indexing for working with files inside zipfiles
Project description
ZipIndex
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="...")
# Patterned Factory - Requires some knowledge of the contents
files_patt: dict[str, ZipItem] = ZipItem.factory(zipfile_path="...",
pattern=r"^data/.*.csv$")
# File Extension Factory
files_ext = dict[str, ZipItem] = ZipItem.factory(zipfile_path="...",
extensions=[".csv"])
# Categorical Factory
categories: dict[str, list[ZipItem]] = ZipItem.factory(zipfile_path="...",
categories={"empty" : {0 : b""}})
Behavior
The categories factory keyword will always return a dictionary with lists of items
as its values, while without the factory will always return a dictionary
with items as values instead.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zipindex-1.3.0.1.tar.gz.
File metadata
- Download URL: zipindex-1.3.0.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d12805628910dd839041a02622cfe217d6d82109d007c10234115aa3394fbf1
|
|
| MD5 |
bdcfbd3278e6262c6dbe9fd5a6d98b3c
|
|
| BLAKE2b-256 |
aa8ef9346cfc52ece5dfbb0a78e867fc4963b24937e820becf83949c33143151
|
File details
Details for the file zipindex-1.3.0.1-py3-none-any.whl.
File metadata
- Download URL: zipindex-1.3.0.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d12b90baa3f1232cc4da5dd62a04af86af0b82627686d3909572b7a975e962ca
|
|
| MD5 |
fe1bdd87e09dca6f309a0644484a38a4
|
|
| BLAKE2b-256 |
7f77c967a1b2118fba924a7fe94bf8e029f222b677b337e9af6dff8a79ffb3ee
|