Skip to main content

Python module for reading and writing Apache ORC file format.

Project description

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.6 or newer and ORC 1.6.

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.

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

pyorc-0.3.0.tar.gz (41.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyorc-0.3.0-cp38-cp38-manylinux2010_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

pyorc-0.3.0-cp38-cp38-macosx_10_14_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.8macOS 10.14+ x86-64

pyorc-0.3.0-cp37-cp37m-manylinux2010_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

pyorc-0.3.0-cp37-cp37m-macosx_10_14_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.7mmacOS 10.14+ x86-64

pyorc-0.3.0-cp36-cp36m-manylinux2010_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

File details

Details for the file pyorc-0.3.0.tar.gz.

File metadata

  • Download URL: pyorc-0.3.0.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for pyorc-0.3.0.tar.gz
Algorithm Hash digest
SHA256 dcb1ba89a838df9dbbe72050fb61359ce3d69cba186cad42873b876c4011e973
MD5 61066582381497eea2142cc43a8293e7
BLAKE2b-256 609e96f51376f3272cb50c26eb9c16c11c680cd257c0a7200b1b222be713b54a

See more details on using hashes here.

File details

Details for the file pyorc-0.3.0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pyorc-0.3.0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for pyorc-0.3.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 fe20305ed8f8fad2c6086e2a22b0e19108522cd6a0cd76825c5b919fe850e357
MD5 cb43550a4adc33c5626a9f81ed3d73a4
BLAKE2b-256 15267b361fb279733702960a7f036815ff72979e0657f0f64f497ba00c1b5d78

See more details on using hashes here.

File details

Details for the file pyorc-0.3.0-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: pyorc-0.3.0-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for pyorc-0.3.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b49d67f3da0ef0ef82e074d21a6875cf5755804e21a2c96f81d950462bd270b0
MD5 1c709ae556a8f68d8d00019275dd3c12
BLAKE2b-256 5ff0c17b1af6cca0ff9c1f4c8b61fac5ce28b332ef3862c8e9ab3ad10687b39d

See more details on using hashes here.

File details

Details for the file pyorc-0.3.0-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pyorc-0.3.0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for pyorc-0.3.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b6e2a1936fd28aaa77fc621e2a86a031701b335360d01cb71b024192cdf24134
MD5 f2d4cc8554b53f3ed386f83da26ca020
BLAKE2b-256 1e5aad475ebc41d3e66f2db07dd575fe4e6942dbc4b335dbe9003527dca95c63

See more details on using hashes here.

File details

Details for the file pyorc-0.3.0-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: pyorc-0.3.0-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for pyorc-0.3.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 ac91be525b3d5cf21cbae339958401fe551de393da2dea9871fb16095614f1ad
MD5 ca05590c67cd398a59a5c6646f32e2e7
BLAKE2b-256 d3df00326adc575254e40be9bd014217803a89f10e3f04456713e3c818ee510c

See more details on using hashes here.

File details

Details for the file pyorc-0.3.0-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pyorc-0.3.0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for pyorc-0.3.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e3a88643bf60c8d627b0a59d6d63ded67a067b7ee373c1204c99142d773d6e9c
MD5 a43d0b36c46b86f25877cd1cf319c623
BLAKE2b-256 4417afa0c2cecc45a1d365a34e0128ccebcc98842830a7fab8997e0422620448

See more details on using hashes here.

Supported by

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