Skip to main content

Python client for the Okera 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 pycerebro

To verify:

>>> import cerebro.cdas
>>> cerebro.cdas.version()
'0.8.0-beta3'

Usage

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

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

from cerebro 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 cerebro 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

pokera-0.1.0.tar.gz (49.1 kB view details)

Uploaded Source

Built Distribution

pokera-0.1.0-py3.5.egg (62.6 kB view details)

Uploaded Source

File details

Details for the file pokera-0.1.0.tar.gz.

File metadata

  • Download URL: pokera-0.1.0.tar.gz
  • Upload date:
  • Size: 49.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pokera-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fb5e25b0310c884d6a2f8cfbf69d3e29348a003aed5823265f383a68c06d7957
MD5 0797c8cf55ad65cc9f68d3689dd6fe49
BLAKE2b-256 8d92c6d6b095893c0846b2be850749e34406879e2d917adecdebfe764c0bb715

See more details on using hashes here.

File details

Details for the file pokera-0.1.0-py3.5.egg.

File metadata

  • Download URL: pokera-0.1.0-py3.5.egg
  • Upload date:
  • Size: 62.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pokera-0.1.0-py3.5.egg
Algorithm Hash digest
SHA256 072fcec715d85706d13476a3a1b9c63953672d703ddfa90a9a2fdd5c7167c953
MD5 e0cd4a8dc9ffcfd49fbca64221c04ede
BLAKE2b-256 5f3d7c09cdfcbcb90e032bc35d1714547262c9a3ad5b8dc4d24900e7e7e19f58

See more details on using hashes here.

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