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)
| File | Size | Uploaded | |
|---|---|---|---|
| pyokera-2.9.0.tar.gz | 338.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|