PyAthena


NamePyAthena JSON
Version 3.8.3 PyPI version JSON
download
home_pageNone
SummaryPython DB API 2.0 (PEP 249) client for Amazon Athena
upload_time2024-05-26 09: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/6a/af/f89ca615d8808e5d79da00b92be684c6d034080c17b9da462702dfd89249/pyathena-3.8.3.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.8.3",
    "project_urls": {
        "homepage": "https://github.com/laughingman7743/PyAthena/",
        "repository": "https://github.com/laughingman7743/PyAthena/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dfa4c4f04dc5929d1c69302628ae9bf77b5807d7c9b093924a5abd3033a6719d",
                "md5": "50a581545ef60c2e5d9158a8d32db1ad",
                "sha256": "99b24e922a15deb5bebc7d6fd7baa1612cec2bbacfe816c3d116da774355e07f"
            },
            "downloads": -1,
            "filename": "pyathena-3.8.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "50a581545ef60c2e5d9158a8d32db1ad",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8.1",
            "size": 75428,
            "upload_time": "2024-05-26T09:48:17",
            "upload_time_iso_8601": "2024-05-26T09:48:17.903887Z",
            "url": "https://files.pythonhosted.org/packages/df/a4/c4f04dc5929d1c69302628ae9bf77b5807d7c9b093924a5abd3033a6719d/pyathena-3.8.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6aaff89ca615d8808e5d79da00b92be684c6d034080c17b9da462702dfd89249",
                "md5": "26c02b645e8c2a943fa623a26be70546",
                "sha256": "99c60860e830c3850cd0201c76d383d76a69e777253dd0ea37ce5b2d11c60da8"
            },
            "downloads": -1,
            "filename": "pyathena-3.8.3.tar.gz",
            "has_sig": false,
            "md5_digest": "26c02b645e8c2a943fa623a26be70546",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.1",
            "size": 55787,
            "upload_time": "2024-05-26T09:48:20",
            "upload_time_iso_8601": "2024-05-26T09:48:20.752057Z",
            "url": "https://files.pythonhosted.org/packages/6a/af/f89ca615d8808e5d79da00b92be684c6d034080c17b9da462702dfd89249/pyathena-3.8.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-26 09: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.25671s