{"categories":[{"label":"Compression","url":"https://skillfed.io/packages/category/system-archiving-compression"}],"enrichment":{"capability":"Provides fast random access to gzip-compressed files by building an index of seek points, allowing you to jump to any location in the uncompressed data without decompressing from the beginning.","skillfed_tags":["compression","neuroimaging","random-access"],"use_cases":["Reading specific slices or regions from large compressed neuroimaging (NIFTI) files without decompressing the entire file.","Accessing arbitrary byte ranges in large gzip archives where seek performance is critical.","Integrating with nibabel to load compressed medical images with automatic index building on first access.","Pre-computing and caching indexes for large gzip files to avoid rebuild overhead on repeated access.","Replacing gzip.GzipFile in existing code that needs faster random access without changing the API."],"what_it_does":"indexed_gzip is a Python extension that replaces the standard gzip.GzipFile class with IndexedGzipFile, which enables efficient random access to gzip-compressed files. Instead of decompressing from the start of the file every time you seek to a new location, it builds an index of seek points (mappings between compressed and uncompressed positions) with accompanying decompression state. This allows you to decompress only the data needed to reach your target location, typically requiring far less work than the standard library's approach.\n\nThe package is designed for reading large gzip files where random access is needed\u2014particularly NIFTI neuroimaging files, though it works with any gzip file. It integrates seamlessly with nibabel for medical imaging workflows and supports index import/export to pre-compute and cache indexes for frequently accessed files. No runtime dependencies are required beyond Python itself.","worth_installing":"Yes, if you regularly read from large gzip files and need random access. The permissive Zlib license and active maintenance make it safe to adopt. Install friction is moderate due to compilation requirements, but pre-built wheels cover common platforms. No security vulnerabilities are known. Not necessary if you only read sequentially or work with small files."},"id":"indexed-gzip","links":{"html":"https://skillfed.io/packages/indexed-gzip","md":"https://skillfed.io/packages/indexed-gzip.md","pypi":"https://pypi.org/project/indexed-gzip/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-12-08","license_spdx":null,"license_treatment":"permissive","name":"indexed-gzip","python_support":"supports_current","summary":"Fast random access of gzip files in Python"},"popularity":{"monthly_downloads":131889,"position":11571,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.10.3"}
