Queuery Redshift HTTP API Client for Python
Project description
queuery_client_python
Queuery Redshift HTTP API Client for Python
Installation
pip install queuery-client
Usage
- (a) naive iteration
from queuery_client import QueueryClient
client = QueueryClient(endpoint="https://queuery.example.com")
response = client.run("select column_a, column_b from the_great_table")
# (a) iterate `response` naively
for elems in response:
print(response)
# (b) invoke `read()` to fetch all records
print(response.read())
# (c) invoke `read()` with `use_pandas=True` (returns `pandas.DataFrame`)
print(response.read(use_pandas=True))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
queuery-client-1.0.0.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for queuery_client-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f123eb565c0e5c6ef51f81388459a2c7efbe589c88de751860eb83f546cbc9d5 |
|
MD5 | 48f42120f6f0f6e8cd2b2b7b3d0914f5 |
|
BLAKE2b-256 | 1442c6d39a1d586ae293160773ac5f238dd1c97bcd90dc47890ed6cdff8a8d4c |