rapidgzip icon indicating copy to clipboard operation
rapidgzip copied to clipboard

Python API: how to use gzipped file index?

Open darked89 opened this issue 1 year ago • 1 comments

Hello,

I am doing the following:

from rapidgzip import RapidgzipFile file = RapidgzipFile("test.gz", parallelization=16) Previously I have created with CLI rapidgzip the index, :test.gz.idx

Short question: how do I specify in the Python code that it should use test.gz.idx?

Many thanks for your help,

DK

EDIT spelling fix

darked89 avatar Feb 15 '25 00:02 darked89

rapidgzip --export-index test.gz.idx test.gz
from rapidgzip import RapidgzipFile
file = RapidgzipFile("test.gz", parallelization=16)
file.import_index("test.gz.idx")

Hope it helps.

mxmlnkn avatar Feb 15 '25 20:02 mxmlnkn

Added to ReadMe.

mxmlnkn avatar Jul 01 '25 11:07 mxmlnkn