Skip to main content

Client for the Cannerflow

Project description

pypi

Introduction

This package provides a client interface to query Cannerflow a distributed SQL engine. It supports Python 2.7, 3.5, 3.6, and pypy.

Installation

$ pip install cannerflow-python-client

Quick Start

Client

# 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

  1. CannerFlow Official Document
  2. Python Client Document

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cannerflow-python-client, version 0.31.0
Filename, size File type Python version Upload date Hashes
Filename, size cannerflow-python-client-0.31.0.tar.gz (13.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page