PyAthena 3.29.1__tar.gz → 3.29.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyathena-3.29.1 → pyathena-3.29.2}/PKG-INFO +3 -3
- {pyathena-3.29.1 → pyathena-3.29.2}/README.md +2 -2
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/__init__.py +2 -2
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/_version.py +2 -2
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/arrow/cursor.py +1 -1
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/pandas/cursor.py +1 -1
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/polars/cursor.py +1 -1
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/s3fs/cursor.py +1 -1
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/spark/cursor.py +1 -1
- {pyathena-3.29.1 → pyathena-3.29.2}/pyproject.toml +10 -4
- {pyathena-3.29.1 → pyathena-3.29.2}/.gitignore +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/LICENSE +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/__init__.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/arrow/__init__.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/common.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/connection.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/cursor.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/pandas/__init__.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/polars/__init__.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/result_set.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/s3fs/__init__.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/spark/__init__.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/sqlalchemy/__init__.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/sqlalchemy/arrow.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/sqlalchemy/base.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/sqlalchemy/pandas.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/sqlalchemy/polars.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/sqlalchemy/rest.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/sqlalchemy/s3fs.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/util.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/arrow/__init__.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/arrow/async_cursor.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/arrow/converter.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/arrow/cursor.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/arrow/result_set.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/arrow/util.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/async_cursor.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/common.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/connection.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/converter.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/cursor.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/error.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/filesystem/__init__.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/filesystem/s3.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/filesystem/s3_object.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/formatter.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/model.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/pandas/__init__.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/pandas/async_cursor.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/pandas/converter.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/pandas/cursor.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/pandas/result_set.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/pandas/util.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/polars/__init__.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/polars/async_cursor.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/polars/converter.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/polars/cursor.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/polars/result_set.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/polars/util.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/py.typed +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/result_set.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/s3fs/__init__.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/s3fs/async_cursor.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/s3fs/converter.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/s3fs/cursor.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/s3fs/reader.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/s3fs/result_set.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/spark/__init__.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/spark/async_cursor.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/spark/common.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/spark/cursor.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/__init__.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/arrow.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/base.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/compiler.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/constants.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/pandas.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/polars.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/preparer.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/requirements.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/rest.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/s3fs.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/types.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/util.py +0 -0
- {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/util.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyAthena
|
|
3
|
-
Version: 3.29.
|
|
3
|
+
Version: 3.29.2
|
|
4
4
|
Summary: Python DB API 2.0 (PEP 249) client for Amazon Athena
|
|
5
5
|
Project-URL: homepage, https://github.com/pyathena-dev/PyAthena/
|
|
6
6
|
Project-URL: repository, https://github.com/pyathena-dev/PyAthena/
|
|
@@ -115,10 +115,10 @@ Native asyncio is also supported:
|
|
|
115
115
|
|
|
116
116
|
```python
|
|
117
117
|
import asyncio
|
|
118
|
-
from pyathena import
|
|
118
|
+
from pyathena import aio_connect
|
|
119
119
|
|
|
120
120
|
async def main():
|
|
121
|
-
async with await
|
|
121
|
+
async with await aio_connect(s3_staging_dir="s3://YOUR_S3_BUCKET/path/to/",
|
|
122
122
|
region_name="us-west-2") as conn:
|
|
123
123
|
cursor = conn.cursor()
|
|
124
124
|
await cursor.execute("SELECT 1")
|
|
@@ -56,10 +56,10 @@ Native asyncio is also supported:
|
|
|
56
56
|
|
|
57
57
|
```python
|
|
58
58
|
import asyncio
|
|
59
|
-
from pyathena import
|
|
59
|
+
from pyathena import aio_connect
|
|
60
60
|
|
|
61
61
|
async def main():
|
|
62
|
-
async with await
|
|
62
|
+
async with await aio_connect(s3_staging_dir="s3://YOUR_S3_BUCKET/path/to/",
|
|
63
63
|
region_name="us-west-2") as conn:
|
|
64
64
|
cursor = conn.cursor()
|
|
65
65
|
await cursor.execute("SELECT 1")
|
|
@@ -131,7 +131,7 @@ def connect(*args, **kwargs) -> "Connection[Any]":
|
|
|
131
131
|
return Connection(*args, **kwargs)
|
|
132
132
|
|
|
133
133
|
|
|
134
|
-
async def
|
|
134
|
+
async def aio_connect(*args, **kwargs) -> "AioConnection":
|
|
135
135
|
"""Create a new async database connection to Amazon Athena.
|
|
136
136
|
|
|
137
137
|
This is the async counterpart of :func:`connect`. It returns an
|
|
@@ -147,7 +147,7 @@ async def aconnect(*args, **kwargs) -> "AioConnection":
|
|
|
147
147
|
|
|
148
148
|
Example:
|
|
149
149
|
>>> import pyathena
|
|
150
|
-
>>> conn = await pyathena.
|
|
150
|
+
>>> conn = await pyathena.aio_connect(
|
|
151
151
|
... s3_staging_dir='s3://my-bucket/staging/',
|
|
152
152
|
... region_name='us-east-1',
|
|
153
153
|
... )
|
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '3.29.
|
|
32
|
-
__version_tuple__ = version_tuple = (3, 29,
|
|
31
|
+
__version__ = version = '3.29.2'
|
|
32
|
+
__version_tuple__ = version_tuple = (3, 29, 2)
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
|
@@ -29,7 +29,7 @@ class AioArrowCursor(WithAsyncFetch):
|
|
|
29
29
|
operations, keeping the event loop free.
|
|
30
30
|
|
|
31
31
|
Example:
|
|
32
|
-
>>> async with await pyathena.
|
|
32
|
+
>>> async with await pyathena.aio_connect(...) as conn:
|
|
33
33
|
... cursor = conn.cursor(AioArrowCursor)
|
|
34
34
|
... await cursor.execute("SELECT * FROM my_table")
|
|
35
35
|
... table = cursor.as_arrow()
|
|
@@ -40,7 +40,7 @@ class AioPandasCursor(WithAsyncFetch):
|
|
|
40
40
|
when ``chunksize`` is set, as fetch calls trigger lazy S3 reads.
|
|
41
41
|
|
|
42
42
|
Example:
|
|
43
|
-
>>> async with await pyathena.
|
|
43
|
+
>>> async with await pyathena.aio_connect(...) as conn:
|
|
44
44
|
... cursor = conn.cursor(AioPandasCursor)
|
|
45
45
|
... await cursor.execute("SELECT * FROM my_table")
|
|
46
46
|
... df = cursor.as_pandas()
|
|
@@ -31,7 +31,7 @@ class AioPolarsCursor(WithAsyncFetch):
|
|
|
31
31
|
when ``chunksize`` is set, as fetch calls trigger lazy S3 reads.
|
|
32
32
|
|
|
33
33
|
Example:
|
|
34
|
-
>>> async with await pyathena.
|
|
34
|
+
>>> async with await pyathena.aio_connect(...) as conn:
|
|
35
35
|
... cursor = conn.cursor(AioPolarsCursor)
|
|
36
36
|
... await cursor.execute("SELECT * FROM my_table")
|
|
37
37
|
... df = cursor.as_polars()
|
|
@@ -23,7 +23,7 @@ class AioS3FSCursor(WithAsyncFetch):
|
|
|
23
23
|
reader, making fetch calls blocking I/O.
|
|
24
24
|
|
|
25
25
|
Example:
|
|
26
|
-
>>> async with await pyathena.
|
|
26
|
+
>>> async with await pyathena.aio_connect(...) as conn:
|
|
27
27
|
... cursor = conn.cursor(AioS3FSCursor)
|
|
28
28
|
... await cursor.execute("SELECT * FROM my_table")
|
|
29
29
|
... row = await cursor.fetchone()
|
|
@@ -33,7 +33,7 @@ class AioSparkCursor(SparkBaseCursor, WithCalculationExecution):
|
|
|
33
33
|
|
|
34
34
|
Example:
|
|
35
35
|
>>> import asyncio
|
|
36
|
-
>>> async with await pyathena.
|
|
36
|
+
>>> async with await pyathena.aio_connect(
|
|
37
37
|
... work_group="spark-workgroup",
|
|
38
38
|
... cursor_class=AioSparkCursor,
|
|
39
39
|
... ) as conn:
|
|
@@ -178,7 +178,7 @@ exclude = [
|
|
|
178
178
|
legacy_tox_ini = """
|
|
179
179
|
[tox]
|
|
180
180
|
isolated_build = true
|
|
181
|
-
envlist = py{310,311,312,313,314}
|
|
181
|
+
envlist = py{310,311,312,313,314}-{pyathena,sqla,sqla_async}
|
|
182
182
|
|
|
183
183
|
[gh-actions]
|
|
184
184
|
python =
|
|
@@ -188,6 +188,12 @@ python =
|
|
|
188
188
|
3.13: py313
|
|
189
189
|
3.14: py314
|
|
190
190
|
|
|
191
|
+
[gh-actions:env]
|
|
192
|
+
TEST_TYPE =
|
|
193
|
+
pyathena: pyathena
|
|
194
|
+
sqla: sqla
|
|
195
|
+
sqla_async: sqla_async
|
|
196
|
+
|
|
191
197
|
[testenv]
|
|
192
198
|
allowlist_externals =
|
|
193
199
|
uv
|
|
@@ -195,9 +201,9 @@ allowlist_externals =
|
|
|
195
201
|
make
|
|
196
202
|
commands =
|
|
197
203
|
uv sync --group dev
|
|
198
|
-
make test
|
|
199
|
-
make test-sqla
|
|
200
|
-
make test-sqla-async
|
|
204
|
+
pyathena: make test
|
|
205
|
+
sqla: make test-sqla
|
|
206
|
+
sqla_async: make test-sqla-async
|
|
201
207
|
passenv =
|
|
202
208
|
TOXENV
|
|
203
209
|
AWS_*
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|