Skip to main content

dask chunked read_text on gzip file

Project description

Dask indexed gzip

Latest PyPI version travis coveralls

An implementation compatible with dask read_text interface, than can chunk a gzipped text file into several partitions, thanks to an index, provided by indexed_gzip

Sample session

>>> import dask_igzip
>>> file_path = dask_igzip()
>>> dask.igzip.

Dask read_text create a unique partition if you provide it with a gzip file. This is understandable, there is no way to split the gzip file in a predictable yet coherent way. This project provides an implementation where the gzip is indexed, then lines positions are also indexed, so that reading the text can be done by chunk (thus enabling parallelism). On first run, indexes are saved on disk, so that subsequent runs are fast.

Changelog

The format is based on Keep a Changelog and this project tries to adhere to Semantic Versioning.

0.1.0 - 2018-06-19

New

  • initial release

  • 100% code coverage

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

dask-igzip-0.1.0.linux-x86_64.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

dask_igzip-0.1.0-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page