Client for the Cannerflow
Project description
Introduction
This package provides a client interface to query Cannerflow a distributed SQL engine. It supports Python 3.6.x, 3.7.x and 3.8.x.
Installation
$ pip install cannerflow-python-client
Quick Start
Client
import cannerflow
# bootstrap cannerflow client with credentials
client = cannerflow.client.bootstrap(
endpoint='https://web.default.myname.apps.cannerflow.com',
workspace_id='444e8753-a4c0-4875-bdc0-834c79061d56',
token='Y2xpZW50XzA0OTgzODM4LWNhZjktNGNmZi1hNDA4LWFkZDY3ZDc5MjIxNjo2N2YyNGY5OWEzYjFiZTEyZTg2MDI2MmMzNGQzZDRiYQ=='
)
# generate simple tpch query
query = client.gen_query('select * from tpch.tiny.region', data_format='list')
query.wait_for_finish()
# get all data with `get_all()` and data will be list of rows
data = query.get_all()
Learn more
Please learn more from
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
Close
Hashes for cannerflow-python-client-0.36.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ad5d31070ac9d0166cda9304a9a65ae1db3ef30f6ceb346b2aa74cf68ddfa45 |
|
MD5 | 021f721b941680cc49a0a4ccf6bcfd81 |
|
BLAKE2b-256 | 1407a20bf25cf1667abe790216b1436123a8c83e55d696d4992bc0d09f2df1e0 |