PyAthena


NamePyAthena JSON
Version 3.10.0 PyPI version JSON
download
home_pageNone
SummaryPython DB API 2.0 (PEP 249) client for Amazon Athena
upload_time2024-12-04 06:48:20
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8.1
licenseCopyright 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.
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. |badge package| image:: https://badge.fury.io/py/pyathena.svg
  :target: https://badge.fury.io/py/pyathena
.. |badge pypi| image:: https://img.shields.io/pypi/pyversions/PyAthena.svg
  :target: https://pypi.org/project/PyAthena/
.. |badge test| image:: https://github.com/laughingman7743/PyAthena/actions/workflows/test.yaml/badge.svg
  :target: https://github.com/laughingman7743/PyAthena/actions/workflows/test.yaml
.. |badge docs| image:: https://github.com/laughingman7743/PyAthena/actions/workflows/docs.yaml/badge.svg
  :target: https://github.com/laughingman7743/PyAthena/actions/workflows/docs.yaml
.. |badge license| image:: https://img.shields.io/pypi/l/PyAthena.svg
  :target: https://github.com/laughingman7743/PyAthena/blob/master/LICENSE
.. |badge downloads| image:: https://static.pepy.tech/badge/pyathena/month
  :target: https://pepy.tech/project/pyathena
.. |badge ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
  :target: https://github.com/astral-sh/ruff
  :alt: Ruff
.. |badge mypy| image:: https://www.mypy-lang.org/static/mypy_badge.svg
  :target: https://mypy-lang.org/
  :alt: mypy

PyAthena
========

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| |badge ruff| |badge mypy|      |
+---------+------------------------------------------------+

.. _`DB API 2.0 (PEP 249)`: https://www.python.org/dev/peps/pep-0249/
.. _`Amazon Athena`: https://docs.aws.amazon.com/athena/latest/APIReference/Welcome.html

.. _requirements:

Requirements
------------

* Python

  - CPython 3.8 3.9 3.10, 3.11 3.12

.. _installation:

Installation
------------

.. code:: bash

    $ 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]``       | >=7.0.0          |
+---------------+---------------------------------------+------------------+
| fastparquet   | ``pip install PyAthena[fastparquet]`` | >=0.4.0          |
+---------------+---------------------------------------+------------------+

.. _usage:

Usage
-----

.. code:: 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())

.. _license:

License
-------

`MIT license`_

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

.. _`MIT license`: LICENSE
.. _`PyHive`: https://github.com/dropbox/PyHive

Links
-----

- Documentation: https://laughingman7743.github.io/PyAthena/
- PyPI Releases: https://pypi.org/project/PyAthena/
- Source Code: https://github.com/laughingman7743/PyAthena/
- Issue Tracker: https://github.com/laughingman7743/PyAthena/issues

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "PyAthena",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8.1",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "laughingman7743 <laughingman7743@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/00/f9/76133628db6d34d2f9fd201822e4bb7f98a6de5964a6f5e14e2483854bdb/pyathena-3.10.0.tar.gz",
    "platform": null,
    "description": ".. |badge package| image:: https://badge.fury.io/py/pyathena.svg\n  :target: https://badge.fury.io/py/pyathena\n.. |badge pypi| image:: https://img.shields.io/pypi/pyversions/PyAthena.svg\n  :target: https://pypi.org/project/PyAthena/\n.. |badge test| image:: https://github.com/laughingman7743/PyAthena/actions/workflows/test.yaml/badge.svg\n  :target: https://github.com/laughingman7743/PyAthena/actions/workflows/test.yaml\n.. |badge docs| image:: https://github.com/laughingman7743/PyAthena/actions/workflows/docs.yaml/badge.svg\n  :target: https://github.com/laughingman7743/PyAthena/actions/workflows/docs.yaml\n.. |badge license| image:: https://img.shields.io/pypi/l/PyAthena.svg\n  :target: https://github.com/laughingman7743/PyAthena/blob/master/LICENSE\n.. |badge downloads| image:: https://static.pepy.tech/badge/pyathena/month\n  :target: https://pepy.tech/project/pyathena\n.. |badge ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\n  :target: https://github.com/astral-sh/ruff\n  :alt: Ruff\n.. |badge mypy| image:: https://www.mypy-lang.org/static/mypy_badge.svg\n  :target: https://mypy-lang.org/\n  :alt: mypy\n\nPyAthena\n========\n\nPyAthena is a Python `DB API 2.0 (PEP 249)`_ client for `Amazon Athena`_.\n\n+---------+------------------------------------------------+\n| Package | |badge package| |badge pypi| |badge downloads| |\n+---------+------------------------------------------------+\n| CI/CD   | |badge test| |badge docs|                      |\n+---------+------------------------------------------------+\n| Meta    | |badge license| |badge ruff| |badge mypy|      |\n+---------+------------------------------------------------+\n\n.. _`DB API 2.0 (PEP 249)`: https://www.python.org/dev/peps/pep-0249/\n.. _`Amazon Athena`: https://docs.aws.amazon.com/athena/latest/APIReference/Welcome.html\n\n.. _requirements:\n\nRequirements\n------------\n\n* Python\n\n  - CPython 3.8 3.9 3.10, 3.11 3.12\n\n.. _installation:\n\nInstallation\n------------\n\n.. code:: bash\n\n    $ pip install PyAthena\n\nExtra packages:\n\n+---------------+---------------------------------------+------------------+\n| Package       | Install command                       | Version          |\n+===============+=======================================+==================+\n| SQLAlchemy    | ``pip install PyAthena[SQLAlchemy]``  | >=1.0.0          |\n+---------------+---------------------------------------+------------------+\n| Pandas        | ``pip install PyAthena[Pandas]``      | >=1.3.0          |\n+---------------+---------------------------------------+------------------+\n| Arrow         | ``pip install PyAthena[Arrow]``       | >=7.0.0          |\n+---------------+---------------------------------------+------------------+\n| fastparquet   | ``pip install PyAthena[fastparquet]`` | >=0.4.0          |\n+---------------+---------------------------------------+------------------+\n\n.. _usage:\n\nUsage\n-----\n\n.. code:: python\n\n    from pyathena import connect\n\n    cursor = connect(s3_staging_dir=\"s3://YOUR_S3_BUCKET/path/to/\",\n                     region_name=\"us-west-2\").cursor()\n    cursor.execute(\"SELECT * FROM one_row\")\n    print(cursor.description)\n    print(cursor.fetchall())\n\n.. _license:\n\nLicense\n-------\n\n`MIT license`_\n\nMany of the implementations in this library are based on `PyHive`_, thanks for `PyHive`_.\n\n.. _`MIT license`: LICENSE\n.. _`PyHive`: https://github.com/dropbox/PyHive\n\nLinks\n-----\n\n- Documentation: https://laughingman7743.github.io/PyAthena/\n- PyPI Releases: https://pypi.org/project/PyAthena/\n- Source Code: https://github.com/laughingman7743/PyAthena/\n- Issue Tracker: https://github.com/laughingman7743/PyAthena/issues\n",
    "bugtrack_url": null,
    "license": "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.",
    "summary": "Python DB API 2.0 (PEP 249) client for Amazon Athena",
    "version": "3.10.0",
    "project_urls": {
        "homepage": "https://github.com/laughingman7743/PyAthena/",
        "repository": "https://github.com/laughingman7743/PyAthena/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f4fcf33bc808c36168a1577759945426f316842f7c9802e16603e496add4a548",
                "md5": "68aff2441b7b025a067a7c21b9055b62",
                "sha256": "35e14a7cc97a6ca0bc504b2c72be911339dc8609732a1f6e8cbaeaf9057df8c3"
            },
            "downloads": -1,
            "filename": "pyathena-3.10.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "68aff2441b7b025a067a7c21b9055b62",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8.1",
            "size": 75526,
            "upload_time": "2024-12-04T06:48:18",
            "upload_time_iso_8601": "2024-12-04T06:48:18.329370Z",
            "url": "https://files.pythonhosted.org/packages/f4/fc/f33bc808c36168a1577759945426f316842f7c9802e16603e496add4a548/pyathena-3.10.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "00f976133628db6d34d2f9fd201822e4bb7f98a6de5964a6f5e14e2483854bdb",
                "md5": "161963bf19eb886019d8692d4f688595",
                "sha256": "a5a1539a13c6af6ab3d422b8db9b5b48711b7b1725fa5aa68282fa45999f0b6a"
            },
            "downloads": -1,
            "filename": "pyathena-3.10.0.tar.gz",
            "has_sig": false,
            "md5_digest": "161963bf19eb886019d8692d4f688595",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.1",
            "size": 55880,
            "upload_time": "2024-12-04T06:48:20",
            "upload_time_iso_8601": "2024-12-04T06:48:20.574344Z",
            "url": "https://files.pythonhosted.org/packages/00/f9/76133628db6d34d2f9fd201822e4bb7f98a6de5964a6f5e14e2483854bdb/pyathena-3.10.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-04 06:48:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "laughingman7743",
    "github_project": "PyAthena",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pyathena"
}
        
Elapsed time: 0.52179s