A simple Amazon Athena wrapper leveraging boto3 to execute queries and return results. Requires only a database and query string. Current version 1.6.0, last updated 2021-06-28, no recent releases.
pip install pythenaVerified import paths — ran on the pinned version, not inferred.
Basic usage: create PyThenA instance with database, execute query, access result.data as a list of dicts.
Access result.data for query results.
Consider using boto3 directly or awswrangler for Athena queries.
client = PyThenA(database='mydb', output_location='s3://my-bucket/path/')