Skip to main content

pyokera

Python client for RecordService implementations.

Dependencies

Required:

  • Python 3.4+

  • six, bit_array, thriftpy2, urllib3, certifi

pip3 install six bit_array thriftpy2 urllib3 certifi

Optional:

  • pandas for conversion to DataFrame objects

Installation

pip3 install pyokera

To verify:

>>> import okera.odas
>>> okera.odas.version()
'##OKERA_RELEASE_VERSION##'

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()

Metadata

Release files for pyokera 2.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyokera 2.9.0
File Size Uploaded
pyokera-2.9.0.tar.gz 338.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyokera 2.9.0
File Interpreter ABI Platform
pyokera-2.9.0-py3.6.egg Legacy Egg format - - Details

Total release size: 1.1 MB

Release files / pyokera-2.9.0.tar.gz

Download URL pyokera-2.9.0.tar.gz
Size 338.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b969909e8aed1aebde54d93a66116c6b1fa22529fe1b7708825850776f9c559f
BLAKE2b-256 checksum
How to use checksums
081ba94adfacee3cdcdf85837634e10efd42675f43ec0be08a34dd066b75d9ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

Release files / pyokera-2.9.0-py3.6.egg

Download URL pyokera-2.9.0-py3.6.egg
Size 740.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
ba3d116527cd5e0f119272453e713c507f803545aa039c3dcc6c94a4d95f113a
BLAKE2b-256 checksum
How to use checksums
ca3a3fff9f17f277954ec07378a2e3208b25c8188ab093f6cd5c92136adf47c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

Release history Release notifications | RSS feed

This release

2.9.0 This release

2 release files

2.8.0

2 release files

2.7.0

2 release files

2.6.0

2 release files

2.5.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.3

2 release files

2.0.0

2 release files

1.5.10

2 release files

1.5.5

2 release files

1.5.4

2 release files

1.5.2

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page