Skip to main content

Python client for the Cerebro Data Access Service

Project description

Python client for RecordService implementations.

Dependencies

Required:

  • Python 3.4+

  • six, bit_array, thriftpy >=0.3.9

pip3 install six bit_array 'thriftpy>=0.3.9'

Optional:

  • pandas for conversion to DataFrame objects

Installation

pip3 install pyokera

To verify:

>>> import okera.odas
>>> okera.odas.version()
'1.2.0'

Usage

from okera import context
ctx = context()
with ctx.connect(host='localhost', port=12050) as conn:
    conn.list_databases()
    pd = conn.scan_as_pandas("okera_sample.sample")
    pd

To enable a connection to a server with token-authentication:

from okera import context
ctx = context()
ctx.enable_token_auth(token_str='my-token')
with ctx.connect(host='localhost', port=12050) as conn:
    conn.list_databases()

To enable a connection to a server with kerberos-authentication:

from okera import context
ctx = context()
# Connecting to server principal 'cerebro/service@REALM'
ctx.enable_kerberos('cerebro', host_override='service')
with ctx.connect(host='localhost', port=12050) as conn:
    conn.list_databases()

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

pyokera-1.2.0.0.tar.gz (52.6 kB view details)

Uploaded Source

Built Distribution

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

pyokera-1.2.0.0-py3.5.egg (71.7 kB view details)

Uploaded Egg

File details

Details for the file pyokera-1.2.0.0.tar.gz.

File metadata

  • Download URL: pyokera-1.2.0.0.tar.gz
  • Upload date:
  • Size: 52.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/33.1.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.3

File hashes

Hashes for pyokera-1.2.0.0.tar.gz
Algorithm Hash digest
SHA256 259e7d6f4c330482f0da9c1daaeff4c5619357279e42b16f062d17b39596f032
MD5 c65b089ebab1eaab83daa3946020ceb7
BLAKE2b-256 064816325b9fdb5ce8c0bfdf828e72e4cd2bc7205c4e2f8b3f2e8fd87a375e3f

See more details on using hashes here.

File details

Details for the file pyokera-1.2.0.0-py3.5.egg.

File metadata

  • Download URL: pyokera-1.2.0.0-py3.5.egg
  • Upload date:
  • Size: 71.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/33.1.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.3

File hashes

Hashes for pyokera-1.2.0.0-py3.5.egg
Algorithm Hash digest
SHA256 b575422bcba166d75a22882c6ee43b1c0c5d40338e807fa8ec7c4ccf4cf4a411
MD5 5dbe1c4a1994167bbb8128172f7a0c76
BLAKE2b-256 22a3be69eb5208754ca84bb9b5e3df521a651924bad4b62817c42a773afb6437

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