rapidgzip
rapidgzip copied to clipboard
Python API: how to use gzipped file index?
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
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.
Added to ReadMe.