{"id":44702100,"url":"https://github.com/pyathena-dev/pyathena","last_synced_at":"2026-02-21T17:01:00.755Z","repository":{"id":37470570,"uuid":"91921249","full_name":"pyathena-dev/PyAthena","owner":"pyathena-dev","description":"PyAthena is a Python DB API 2.0 (PEP 249) client for Amazon Athena.","archived":false,"fork":false,"pushed_at":"2026-02-15T08:20:58.000Z","size":19375,"stargazers_count":491,"open_issues_count":4,"forks_count":107,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-02-15T13:35:45.255Z","etag":null,"topics":["athena","aws","dbapi","python","sqlalchemy"],"latest_commit_sha":null,"homepage":"https://pyathena-dev.github.io/PyAthena/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyathena-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-05-20T23:05:31.000Z","updated_at":"2026-02-15T08:04:15.000Z","dependencies_parsed_at":"2026-01-01T20:07:43.379Z","dependency_job_id":null,"html_url":"https://github.com/pyathena-dev/PyAthena","commit_stats":{"total_commits":766,"total_committers":23,"mean_commits":33.30434782608695,"dds":0.06135770234986948,"last_synced_commit":"3a53ac35285365a5facc9ee281ef12c6936be8ed"},"previous_names":["pyathena-dev/pyathena"],"tags_count":165,"template":false,"template_full_name":null,"purl":"pkg:github/pyathena-dev/PyAthena","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyathena-dev%2FPyAthena","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyathena-dev%2FPyAthena/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyathena-dev%2FPyAthena/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyathena-dev%2FPyAthena/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyathena-dev","download_url":"https://codeload.github.com/pyathena-dev/PyAthena/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyathena-dev%2FPyAthena/sbom","scorecard":{"id":579854,"data":{"date":"2025-08-11","repo":{"name":"github.com/laughingman7743/PyAthena","commit":"df3b21fd33df07f5aef75301cdfd1222ed48e288"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 11 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: topLevel 'contents' permission set to 'read': .github/workflows/docs.yaml:9","Warn: topLevel 'contents' permission set to 'write': .github/workflows/release.yaml:10","Info: topLevel 'contents' permission set to 'read': .github/workflows/test.yaml:10","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yaml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/laughingman7743/PyAthena/docs.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yaml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/laughingman7743/PyAthena/docs.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docs.yaml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/laughingman7743/PyAthena/docs.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yaml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/laughingman7743/PyAthena/docs.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yaml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/laughingman7743/PyAthena/docs.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/laughingman7743/PyAthena/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/laughingman7743/PyAthena/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/laughingman7743/PyAthena/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/laughingman7743/PyAthena/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/laughingman7743/PyAthena/test.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yaml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/laughingman7743/PyAthena/test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/laughingman7743/PyAthena/test.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yaml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/laughingman7743/PyAthena/test.yaml/master?enable=pin","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v3.17.0 not signed: https://api.github.com/repos/laughingman7743/PyAthena/releases/238758762","Warn: release artifact v3.16.0 not signed: https://api.github.com/repos/laughingman7743/PyAthena/releases/237107131","Warn: release artifact v3.15.0 not signed: https://api.github.com/repos/laughingman7743/PyAthena/releases/233658045","Warn: release artifact v3.14.1 not signed: https://api.github.com/repos/laughingman7743/PyAthena/releases/220861713","Warn: release artifact v3.14.0 not signed: https://api.github.com/repos/laughingman7743/PyAthena/releases/219330076","Warn: release artifact v3.17.0 does not have provenance: https://api.github.com/repos/laughingman7743/PyAthena/releases/238758762","Warn: release artifact v3.16.0 does not have provenance: https://api.github.com/repos/laughingman7743/PyAthena/releases/237107131","Warn: release artifact v3.15.0 does not have provenance: https://api.github.com/repos/laughingman7743/PyAthena/releases/233658045","Warn: release artifact v3.14.1 does not have provenance: https://api.github.com/repos/laughingman7743/PyAthena/releases/220861713","Warn: release artifact v3.14.0 does not have provenance: https://api.github.com/repos/laughingman7743/PyAthena/releases/219330076"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yaml:13"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-42991 / GHSA-v3c5-jqr6-7qm8","Warn: Project is vulnerable to: GHSA-6p56-wp2h-9hxr","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T18:55:05.842Z","repository_id":37470570,"created_at":"2025-08-20T18:55:05.842Z","updated_at":"2025-08-20T18:55:05.842Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29688216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T15:51:39.154Z","status":"ssl_error","status_checked_at":"2026-02-21T15:49:03.425Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["athena","aws","dbapi","python","sqlalchemy"],"created_at":"2026-02-15T10:23:39.110Z","updated_at":"2026-02-21T17:01:00.740Z","avatar_url":"https://github.com/pyathena-dev.png","language":"Python","readme":"# PyAthena\n\n\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/pyathena-dev/PyAthena/master/docs/_static/icon.png\" alt=\"PyAthena logo\" width=\"250\"\u003e\n\n[![PyPI - Version](https://badge.fury.io/py/pyathena.svg)](https://badge.fury.io/py/pyathena)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/PyAthena.svg)](https://pypi.org/project/PyAthena/)\n[![PyPI - Downloads](https://static.pepy.tech/badge/pyathena/month)](https://pepy.tech/project/pyathena)\n[![CI - Test](https://github.com/pyathena-dev/PyAthena/actions/workflows/test.yaml/badge.svg)](https://github.com/pyathena-dev/PyAthena/actions/workflows/test.yaml)\n[![CD - Docs](https://github.com/pyathena-dev/PyAthena/actions/workflows/docs.yaml/badge.svg)](https://github.com/pyathena-dev/PyAthena/actions/workflows/docs.yaml)\n[![License - MIT](https://img.shields.io/pypi/l/PyAthena.svg)](https://github.com/pyathena-dev/PyAthena/blob/master/LICENSE)\n[![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)\n[![types - Mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)\n\n\u003c/div\u003e\n\nPyAthena 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).\n\n-----\n\n## Requirements\n\n* Python\n\n  - CPython 3.10, 3.11, 3.12, 3.13, 3.14\n\n## Installation\n\n```bash\n$ pip install PyAthena\n```\n\nExtra packages:\n\n| Package    | Install command                      | Version  |\n|------------|--------------------------------------|----------|\n| SQLAlchemy | `pip install PyAthena[SQLAlchemy]`   | \u003e=1.0.0  |\n| Pandas     | `pip install PyAthena[Pandas]`       | \u003e=1.3.0  |\n| Arrow      | `pip install PyAthena[Arrow]`        | \u003e=10.0.0 |\n| Polars     | `pip install PyAthena[Polars]`       | \u003e=1.0.0  |\n\n## Usage\n\n```python\nfrom pyathena import connect\n\ncursor = connect(s3_staging_dir=\"s3://YOUR_S3_BUCKET/path/to/\",\n                 region_name=\"us-west-2\").cursor()\ncursor.execute(\"SELECT * FROM one_row\")\nprint(cursor.description)\nprint(cursor.fetchall())\n```\n\nNative asyncio is also supported:\n\n```python\nimport asyncio\nfrom pyathena import aconnect\n\nasync def main():\n    async with await aconnect(s3_staging_dir=\"s3://YOUR_S3_BUCKET/path/to/\",\n                              region_name=\"us-west-2\") as conn:\n        cursor = conn.cursor()\n        await cursor.execute(\"SELECT 1\")\n        print(await cursor.fetchone())\n\nasyncio.run(main())\n```\n\n## License\n\n[MIT license](LICENSE)\n\nMany of the implementations in this library are based on [PyHive](https://github.com/dropbox/PyHive), thanks for [PyHive](https://github.com/dropbox/PyHive).\n\n## Links\n\n- Documentation: https://pyathena.dev/\n- PyPI Releases: https://pypi.org/project/PyAthena/\n- Source Code: https://github.com/pyathena-dev/PyAthena/\n- Issue Tracker: https://github.com/pyathena-dev/PyAthena/issues\n\n## Logo\n\nThe PyAthena logo was generated using [Nano-Banana Pro](https://deepmind.google/models/gemini-image/pro/) (Gemini 3 Pro Image).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyathena-dev%2Fpyathena","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyathena-dev%2Fpyathena","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyathena-dev%2Fpyathena/lists"}