{"library":"pythena","title":"PyThenA - Simple Athena Wrapper","description":"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.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install pythena"],"cli":null},"imports":["from pythena import PyThenA"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pythena import PyThenA\nimport os\n\ndatabase = os.environ.get('ATHENA_DATABASE', 'default')\nquery = \"SELECT 1 AS test\"\n\nclient = PyThenA(database=database)\nresult = client.execute(query)\nprint(result.data)","lang":"python","description":"Basic usage: create PyThenA instance with database, execute query, access result.data as a list of dicts.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}