Metadata-Version: 2.1
Name: queuery-client
Version: 1.0.1
Summary: Queuery Redshift HTTP API Client for Python
Home-page: https://github.com/bricolages/queuery_client_python
License: MIT
Author: altescy
Author-email: yasuhiro-yamaguchi@cookpad.com
Requires-Python: >=3.8.0,<4.0.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Provides-Extra: pandas
Requires-Dist: pandas (>=1.2.3,<2.0.0); extra == "pandas"
Requires-Dist: python-dateutil (>=2.8.2,<3.0.0)
Requires-Dist: requests (>=2.25.1,<3.0.0)
Description-Content-Type: text/markdown

# queuery_client_python

Queuery Redshift HTTP API Client for Python

## Installation

`pip install queuery-client`

## Usage

- (a) naive iteration

```python
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))
```

