Python client for the Okera Data Access Service
Project description
Python client for RecordService implementations.
Dependencies
Required:
Python 3.4+
six, bit_array, thriftpy2==0.3.12, urllib3, certifi
pip3 install six bit_array thriftpy2==0.3.12 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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyokera-1.5.2.tar.gz.
File metadata
- Download URL: pyokera-1.5.2.tar.gz
- Upload date:
- Size: 90.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e0db1df47f0ce111dd761b07ee4665c4ccc9ffe211735f8b4f917b01337db05
|
|
| MD5 |
1744feede851e51a39942908746ea6dd
|
|
| BLAKE2b-256 |
adb455830bff9c89dee02828249e09414303f7f6ab5e1c716cf9d91711bd6696
|
File details
Details for the file pyokera-1.5.2-py3.5.egg.
File metadata
- Download URL: pyokera-1.5.2-py3.5.egg
- Upload date:
- Size: 167.8 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f5a68b99430f74388ba7e9484facecb4a4198bd750f386e7f92bae27b65a6bc
|
|
| MD5 |
3f5915cc747735dc0239be090b8654a9
|
|
| BLAKE2b-256 |
23b40108c43db91b376dbc363daf2cdb5522cf81534ed72046a3322abba10878
|