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.
Files changed (85) hide show
  1. {pyathena-3.29.1 → pyathena-3.29.2}/PKG-INFO +3 -3
  2. {pyathena-3.29.1 → pyathena-3.29.2}/README.md +2 -2
  3. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/__init__.py +2 -2
  4. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/_version.py +2 -2
  5. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/arrow/cursor.py +1 -1
  6. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/pandas/cursor.py +1 -1
  7. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/polars/cursor.py +1 -1
  8. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/s3fs/cursor.py +1 -1
  9. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/spark/cursor.py +1 -1
  10. {pyathena-3.29.1 → pyathena-3.29.2}/pyproject.toml +10 -4
  11. {pyathena-3.29.1 → pyathena-3.29.2}/.gitignore +0 -0
  12. {pyathena-3.29.1 → pyathena-3.29.2}/LICENSE +0 -0
  13. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/__init__.py +0 -0
  14. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/arrow/__init__.py +0 -0
  15. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/common.py +0 -0
  16. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/connection.py +0 -0
  17. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/cursor.py +0 -0
  18. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/pandas/__init__.py +0 -0
  19. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/polars/__init__.py +0 -0
  20. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/result_set.py +0 -0
  21. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/s3fs/__init__.py +0 -0
  22. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/spark/__init__.py +0 -0
  23. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/sqlalchemy/__init__.py +0 -0
  24. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/sqlalchemy/arrow.py +0 -0
  25. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/sqlalchemy/base.py +0 -0
  26. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/sqlalchemy/pandas.py +0 -0
  27. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/sqlalchemy/polars.py +0 -0
  28. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/sqlalchemy/rest.py +0 -0
  29. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/sqlalchemy/s3fs.py +0 -0
  30. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/aio/util.py +0 -0
  31. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/arrow/__init__.py +0 -0
  32. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/arrow/async_cursor.py +0 -0
  33. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/arrow/converter.py +0 -0
  34. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/arrow/cursor.py +0 -0
  35. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/arrow/result_set.py +0 -0
  36. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/arrow/util.py +0 -0
  37. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/async_cursor.py +0 -0
  38. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/common.py +0 -0
  39. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/connection.py +0 -0
  40. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/converter.py +0 -0
  41. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/cursor.py +0 -0
  42. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/error.py +0 -0
  43. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/filesystem/__init__.py +0 -0
  44. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/filesystem/s3.py +0 -0
  45. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/filesystem/s3_object.py +0 -0
  46. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/formatter.py +0 -0
  47. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/model.py +0 -0
  48. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/pandas/__init__.py +0 -0
  49. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/pandas/async_cursor.py +0 -0
  50. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/pandas/converter.py +0 -0
  51. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/pandas/cursor.py +0 -0
  52. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/pandas/result_set.py +0 -0
  53. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/pandas/util.py +0 -0
  54. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/polars/__init__.py +0 -0
  55. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/polars/async_cursor.py +0 -0
  56. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/polars/converter.py +0 -0
  57. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/polars/cursor.py +0 -0
  58. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/polars/result_set.py +0 -0
  59. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/polars/util.py +0 -0
  60. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/py.typed +0 -0
  61. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/result_set.py +0 -0
  62. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/s3fs/__init__.py +0 -0
  63. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/s3fs/async_cursor.py +0 -0
  64. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/s3fs/converter.py +0 -0
  65. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/s3fs/cursor.py +0 -0
  66. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/s3fs/reader.py +0 -0
  67. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/s3fs/result_set.py +0 -0
  68. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/spark/__init__.py +0 -0
  69. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/spark/async_cursor.py +0 -0
  70. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/spark/common.py +0 -0
  71. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/spark/cursor.py +0 -0
  72. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/__init__.py +0 -0
  73. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/arrow.py +0 -0
  74. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/base.py +0 -0
  75. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/compiler.py +0 -0
  76. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/constants.py +0 -0
  77. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/pandas.py +0 -0
  78. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/polars.py +0 -0
  79. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/preparer.py +0 -0
  80. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/requirements.py +0 -0
  81. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/rest.py +0 -0
  82. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/s3fs.py +0 -0
  83. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/types.py +0 -0
  84. {pyathena-3.29.1 → pyathena-3.29.2}/pyathena/sqlalchemy/util.py +0 -0
  85. {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.1
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 aconnect
118
+ from pyathena import aio_connect
119
119
 
120
120
  async def main():
121
- async with await aconnect(s3_staging_dir="s3://YOUR_S3_BUCKET/path/to/",
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 aconnect
59
+ from pyathena import aio_connect
60
60
 
61
61
  async def main():
62
- async with await aconnect(s3_staging_dir="s3://YOUR_S3_BUCKET/path/to/",
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 aconnect(*args, **kwargs) -> "AioConnection":
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.aconnect(
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.1'
32
- __version_tuple__ = version_tuple = (3, 29, 1)
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.aconnect(...) as conn:
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.aconnect(...) as conn:
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.aconnect(...) as conn:
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.aconnect(...) as conn:
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.aconnect(
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