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.1.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for queuery_client-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68effc90a93968622f030a70176da9fbae8ebb1da8e29922bd32a7b1bcdac142 |
|
MD5 | a992b3b81198abdcd1039fc9f5b98963 |
|
BLAKE2b-256 | 5eadc6a5f30ac39093fbef8d48b34049d9fbe4d446ecded4580ac0b27e0dcf36 |