All Projects → noirello → pyorc

noirello / pyorc

Licence: Apache-2.0 license
Python module for Apache ORC file format

Programming Languages

python
139335 projects - #7 most used programming language
C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to pyorc

orc
Orc programming language implementation
Stars: ✭ 34 (-41.38%)
Mutual labels:  orc
GRCNN OCR.pytorch
Gated Recurrent Convolution Neural Network in Pytorch
Stars: ✭ 21 (-63.79%)
Mutual labels:  orc
centurion
Kotlin Bigdata Toolkit
Stars: ✭ 320 (+451.72%)
Mutual labels:  orc

PyORC

Azure Pipelines Status Codecov code coverage Documentation Status

Python module for reading and writing Apache ORC file format. It uses the Apache ORC's Core C++ API under the hood, and provides a similar interface as the csv module in the Python standard library.

Supports only Python 3.7 or newer and ORC 1.7.

Features

  • Reading ORC files.
  • Writing ORC files.
  • While using Python's stream/file-like object IO interface.

That sums up quite well the purpose of this project.

Example

Minimal example for reading an ORC file:

import pyorc

with open("./data.orc", "rb") as data:
    reader = pyorc.Reader(data)
    for row in reader:
        print(row)

And another for writing one:

import pyorc

with open("./new_data.orc", "wb") as data:
    with pyorc.Writer(data, "struct<col0:int,col1:string>") as writer:
        writer.write((1, "ORC from Python"))

Contribution

Any contributions are welcome. If you would like to help in development fork or report issue here on Github. You can also help in improving the documentation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].