parquet-python is a pure-python implementation (currently with only read-support) of the parquet format. It comes with a script for reading parquet files and outputting the data to stdout as JSON or TSV (without the overhead of JVM startup). Performance has not yet been optimized, but it's useful for debugging and quick viewing of data in files.
Not all parts of the parquet-format have been implemented yet or tested e.g. nested data and the deprecated bit-packing encoding -- see Todos below for a full list. With that said, parquet-python is capable of reading all the data files from the parquet-compatability project.
parquet-python has been tested on python 2.7. It depends on thrift
(0.9) and python-snappy
(for snappy compressed files).
parquet-python is not yet uploaded to PyPi as the code has a lot of bugs. To get started, clone the project, change into the parquet-python directory, and run python -m parquet
.
You may need to install the thrift
and python-snappy
projects with easy_install
or pip
. To install parquet-python system-wide, run python setup.py install
.
- Support the deprecated bitpacking
- Support for bitwidths > 8
- Fix handling of repetition-levels and definition-levels
- Tests for nested schemas, null data
- Support reading of data from HDFS via snakebite and/or webhdfs.
- Implement writing
- performance evaluation and optimization (i.e. how does it compare to the c++, java implementations)
Is done via Pull Requests. Please include tests with your changes and follow pep8.