Skip to main content

pypi

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

Installing Issue

Show Couldn't find index page for 'xxx' (maybe misspelled?) when installing dependency package fastparquet stage

If you're installing our cannerflow-python-client by pip, and meet these message: Couldn't find index page for 'xxx' (maybe misspelled?),e.g: numpy, pytest-runner followed the error distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('xxxx'),

then please install these package by hand through pip install command, and make sure the dependency package exist on PyPI, like below:

# If you face the issue for numpy
$> pip install numpy==1.19.5 # recommend version for our package

# If you face the issue for pytest-runner
$> pip install pytest-runner==5.3.0 # recommend version for our package

Show RuntimeError: Python version >= 3.7 required. when installing dependency package fastparquet stage in Python 3.6.x

This error may happen on installing dependency package fastparquet stage and occurs when fastparquet install numpy version but it need Python version >= 3.7 required, You could install numpy 1.19.5 version (recommend) to prevent the issue.

Learn more

Please learn more from

  1. CannerFlow Official Document
  2. Python Client Document

Metadata

Release files for cannerflow-python-client 0.36.11

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

Source distribution (sdist)

Source distribution for cannerflow-python-client 0.36.11
File Size Uploaded
cannerflow-python-client-0.36.11.tar.gz 25.7 kB Details

Release files / cannerflow-python-client-0.36.11.tar.gz

Download URL cannerflow-python-client-0.36.11.tar.gz
Size 25.7 kB
Tags Source
SHA-256 checksum
How to use checksums
966069b1404e9a9e1f1a05cdde1e5304aba61e4fdc12cf477add6f2be5849874
BLAKE2b-256 checksum
How to use checksums
455709c99dfae033c406b15e69fc581baac319c7754ca1afe7d62430a1581933
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.36.11 This release

1 release file

0.36.10

1 release file

0.36.9

1 release file

0.36.8

1 release file

0.36.7

1 release file

0.36.6

1 release file

0.36.5

1 release file

0.36.4

1 release file

0.36.3

1 release file

0.36.2

1 release file

0.36.1

1 release file

0.36.0

1 release file

0.35.0

1 release file

0.34.0

1 release file

0.32.0

1 release file

0.31.0

1 release file

0.30.0

1 release file

0.29.0

1 release file

0.28.0

1 release file

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