Skip to main content

PyAthena is a Python DB API 2.0 (PEP 249) client for Amazon Athena.

Package

badge package badge pypi badge downloads

CI/CD

badge test badge docs

Meta

badge license Ruff mypy

Requirements

  • Python

    • CPython 3.10, 3.11, 3.12, 3.13, 3.14

Installation

$ pip install PyAthena

Extra packages:

Package

Install command

Version

SQLAlchemy

pip install PyAthena[SQLAlchemy]

>=1.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

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())

License

MIT license

Many of the implementations in this library are based on PyHive, thanks for PyHive.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyathena-3.24.0.tar.gz (114.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyathena-3.24.0-py3-none-any.whl (153.4 kB view details)

Uploaded Python 3

File details

Details for the file pyathena-3.24.0.tar.gz.

File metadata

  • Download URL: pyathena-3.24.0.tar.gz
  • Upload date:
  • Size: 114.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyathena-3.24.0.tar.gz
Algorithm Hash digest
SHA256 a8c1227c71ff8804e1aa29e7cc7f71ead14ec43d9aed2beb19bde32a38fb7ddd
MD5 42c7e2ece7085b3e42f0fbed64d81b2f
BLAKE2b-256 e89ff482eec7137b9b0f989ee1c289989f85fe1d4292b599ba87b2e9318616be

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyathena-3.24.0.tar.gz:

Publisher: release.yaml on laughingman7743/PyAthena

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyathena-3.24.0-py3-none-any.whl.

File metadata

  • Download URL: pyathena-3.24.0-py3-none-any.whl
  • Upload date:
  • Size: 153.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyathena-3.24.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da05b67685dadcf7a821f1c672e3d4c205bd5b2d5ef74d27d2690b9018507e0c
MD5 3425f3e17315bb88f521339e0301c415
BLAKE2b-256 5b6f244291b4659339a6bdba3bd0b6179011da7a0c13941bc9aceb6061478e3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyathena-3.24.0-py3-none-any.whl:

Publisher: release.yaml on laughingman7743/PyAthena

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page