PyAthena-3.9.0


توضیحات

Python DB API 2.0 (PEP 249) client for Amazon Athena
ویژگی مقدار
سیستم عامل OS Independent
نام فایل PyAthena-3.9.0
نام PyAthena
نسخه کتابخانه 3.9.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده laughingman7743 <laughingman7743@gmail.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/PyAthena/
مجوز Copyright 2017 laughingman7743 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# PyAthena <div align="center"> <img src="https://raw.githubusercontent.com/pyathena-dev/PyAthena/master/docs/_static/icon.png" alt="PyAthena logo" width="250"> [![PyPI - Version](https://badge.fury.io/py/pyathena.svg)](https://badge.fury.io/py/pyathena) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/PyAthena.svg)](https://pypi.org/project/PyAthena/) [![PyPI - Downloads](https://static.pepy.tech/badge/pyathena/month)](https://pepy.tech/project/pyathena) [![CI - Test](https://github.com/pyathena-dev/PyAthena/actions/workflows/test.yaml/badge.svg)](https://github.com/pyathena-dev/PyAthena/actions/workflows/test.yaml) [![CD - Docs](https://github.com/pyathena-dev/PyAthena/actions/workflows/docs.yaml/badge.svg)](https://github.com/pyathena-dev/PyAthena/actions/workflows/docs.yaml) [![License - MIT](https://img.shields.io/pypi/l/PyAthena.svg)](https://github.com/pyathena-dev/PyAthena/blob/master/LICENSE) [![linting - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![types - Mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/) </div> PyAthena is a Python [DB API 2.0 (PEP 249)](https://www.python.org/dev/peps/pep-0249/) client for [Amazon Athena](https://docs.aws.amazon.com/athena/latest/APIReference/Welcome.html). ----- ## Requirements * Python - CPython 3.10, 3.11, 3.12, 3.13, 3.14 ## Installation ```bash $ pip install PyAthena ``` Extra packages: | Package | Install command | Version | |---------------|-----------------------------------------|----------| | SQLAlchemy | `pip install PyAthena[SQLAlchemy]` | >=1.0.0 | | AioSQLAlchemy | `pip install PyAthena[AioSQLAlchemy]` | >=2.0.0 | | Pandas | `pip install PyAthena[Pandas]` | >=1.3.0 | | Arrow | `pip install PyAthena[Arrow]` | >=10.0.0 | | Polars | `pip install PyAthena[Polars]` | >=1.0.0 | ## Usage ```python from pyathena import connect cursor = connect(s3_staging_dir="s3://YOUR_S3_BUCKET/path/to/", region_name="us-west-2").cursor() cursor.execute("SELECT * FROM one_row") print(cursor.description) print(cursor.fetchall()) ``` Native asyncio is also supported: ```python import asyncio from pyathena import aio_connect async def main(): async with await aio_connect(s3_staging_dir="s3://YOUR_S3_BUCKET/path/to/", region_name="us-west-2") as conn: cursor = conn.cursor() await cursor.execute("SELECT 1") print(await cursor.fetchone()) asyncio.run(main()) ``` ## License [MIT license](LICENSE) Many of the implementations in this library are based on [PyHive](https://github.com/dropbox/PyHive), thanks for [PyHive](https://github.com/dropbox/PyHive). ## Links - Documentation: https://pyathena.dev/ - PyPI Releases: https://pypi.org/project/PyAthena/ - Source Code: https://github.com/pyathena-dev/PyAthena/ - Issue Tracker: https://github.com/pyathena-dev/PyAthena/issues ## Logo The PyAthena logo was generated using [Nano-Banana Pro](https://deepmind.google/models/gemini-image/pro/) (Gemini 3 Pro Image).


نیازمندی

مقدار نام
- boto3>=1.26.4
- botocore>=1.29.4
- fsspec
- python-dateutil
- tenacity>=4.1.0
xtr sqlalchemy[asyncio]>=2.0.0;
ython_versio pyarrow>=10.0.0;
ython_versio pyarrow>=22.0.0;
ython_versio pandas>=1.3.0;
ython_versio pandas>=2.3.0;
xtr polars>=1.0.0;
xtr sqlalchemy>=1.0.0;


زبان مورد نیاز

مقدار نام
>=3.10 Python


نحوه نصب


نصب پکیج whl PyAthena-3.9.0:

    pip install PyAthena-3.9.0.whl


نصب پکیج tar.gz PyAthena-3.9.0:

    pip install PyAthena-3.9.0.tar.gz