{ "info": { "author": "Giovanni Lanzani", "author_email": "giovanni@lanzani.nl", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Information Technology", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Database" ], "description": "HS2Client\n=========\n\nThis project aims to be an up to date Python client to interact with Hive Server 2\nusing the Thrift protocol.\n\nThe project is heavily inspired by PyHive_ up to the point that part of the code\nhas been snatched from there. See *Differences* for more.\n\nInstallation\n------------\n\nInstall it with ``pip install hs2client`` or directly from source\n\n.. code-block:: python\n\n python setup.py install\n\nUsage\n-----\n\nUsing it from Python is simple:\n\n.. code-block:: python\n\n from hs2client.hs2client import HS2Client\n\n client = HS2Client(host='127.0.0.1', username='user', port=10000, auth='NONE')\n\n with client as connection, connection.cursor() as cursor:\n cursor.arraysize = 10\n cursor.execute('select * from table')\n for row in cursor:\n print(row)\n\n\nRegenerate the Python thrift library\n------------------------------------\n\nThe ``hs2client.py`` is just a thin wrapper around the generated Python code to\ninteract with Hive Server 2 through the Thrift protocol.\n\nTo regenerate the code using a newer version of the ``.thrift`` files, you can\nuse ``generate.py`` (note: you need to have ``thrift`` installed, see here_)\n\n.. code-block:: sh\n\n python generate.py --help\n\n Usage: generate.py [OPTIONS]\n\n Options:\n --hive_server2_url TEXT The URL where the TCLIService.thrift file can be downloaded\n --package TEXT The package where the client should be placed\n --subpackage TEXT The subpackage where the client should be placed\n --help Show this message and exit.\n\nOtherwise the defaults will be used.\n\nDifferences with PyHive\n-----------------------\n\n* This pakcage lacks the sqlalchemy and the presto part;\n* The main class, ``HS2Client`` inherits from ``TCLIService.Client``, making certain things\n handier;\n* In cases where authentication is ``NONE``, the ``username`` is set to ``mr.who`` to avoid issues\n with the latest Hive Server 2 versions;\n* Thrift 0.11 has been used to generate the Python files;\n* The ``generate.py`` file allows to easily update the files generated from the thrift specs.\n\n.. _here: https://thrift-tutorial.readthedocs.io/en/latest/installation.html\n.. _PyHive: https://github.com/dropbox/PyHive\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gglanzani/hs2client", "keywords": "hive data database thrift metastore", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "hs2client", "package_url": "https://pypi.org/project/hs2client/", "platform": "", "project_url": "https://pypi.org/project/hs2client/", "project_urls": { "Homepage": "https://github.com/gglanzani/hs2client" }, "release_url": "https://pypi.org/project/hs2client/0.1.1/", "requires_dist": [ "thrift", "click", "future", "thrift-sasl", "pytest; extra == 'dev'", "pytest; extra == 'test'" ], "requires_python": "", "summary": "A package interact with Hive Server 2 via the Thrift protocol", "version": "0.1.1" }, "last_serial": 3917459, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "7cc5098c58016b5e083647a93ed9f57b", "sha256": "d33da83c831c000d99b28e122eb68a6ff84ddb0a9825bc556984ccadd848b70f" }, "downloads": -1, "filename": "hs2client-0.1.0-py2.7.egg", "has_sig": false, "md5_digest": "7cc5098c58016b5e083647a93ed9f57b", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 80031, "upload_time": "2018-05-31T12:43:36", "url": "https://files.pythonhosted.org/packages/81/29/2160def04d1591ae6628168d52ea4755199a929827708bac29d3c60c43f9/hs2client-0.1.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "febb7ef839eac00f129ebc9ff9849870", "sha256": "47aeb671c061d5d33b3193fa5675a50590688e5762e87dee8ad2eb392c589220" }, "downloads": -1, "filename": "hs2client-0.1.0-py3.6.egg", "has_sig": false, "md5_digest": "febb7ef839eac00f129ebc9ff9849870", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 84020, "upload_time": "2018-05-31T12:43:37", "url": "https://files.pythonhosted.org/packages/fa/6c/1994e3ba6aff999568b0a1bbe9bb3d0d639d9cb714f1a411af0f903f5be4/hs2client-0.1.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "209a70422d3ce5cff57b1af9f5a38776", "sha256": "b19f16c60c498ca2b863063036bff735c1b01794cb28e5974c5c92cd467c0275" }, "downloads": -1, "filename": "hs2client-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "209a70422d3ce5cff57b1af9f5a38776", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 32025, "upload_time": "2018-05-31T12:43:34", "url": "https://files.pythonhosted.org/packages/67/f0/6c5c285bcc5602a4e77a320cb8f8b5ac6304ec093e66b314111f739c4990/hs2client-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3632ac728f636ae63ffcaa6895e56886", "sha256": "dc7b5347cab18ca6d8a76f9fe3ad22104472b23e92facd9cd66078222b0cb42a" }, "downloads": -1, "filename": "hs2client-0.1.0.tar.gz", "has_sig": false, "md5_digest": "3632ac728f636ae63ffcaa6895e56886", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29743, "upload_time": "2018-05-31T12:43:38", "url": "https://files.pythonhosted.org/packages/e9/1a/5748fc75088c4cb24dd09c6baa32019860619ad3947974954fedff09b088/hs2client-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "0d6914ac57cf32e4987a70d999a83200", "sha256": "b9195b71a7eddcd336326049376b3b34e5d2a3cdeab5064bcee7399c0cf455d9" }, "downloads": -1, "filename": "hs2client-0.1.1-py2.7.egg", "has_sig": false, "md5_digest": "0d6914ac57cf32e4987a70d999a83200", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 80312, "upload_time": "2018-05-31T15:31:01", "url": "https://files.pythonhosted.org/packages/0c/a0/015883ffa4e3c0b9673560e2aca579338208bf4e06b59e12e1d461bd183e/hs2client-0.1.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "3cad1bb6df1abb9b7cba37c0535d9ba4", "sha256": "4f1a3ab1d98865962b78e29c977d8c0baa2b90a14e4998bb0d9fd08df86f3968" }, "downloads": -1, "filename": "hs2client-0.1.1-py3.6.egg", "has_sig": false, "md5_digest": "3cad1bb6df1abb9b7cba37c0535d9ba4", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 84300, "upload_time": "2018-05-31T15:31:05", "url": "https://files.pythonhosted.org/packages/fc/03/5b2cf6f6a0fad38a7b7024789e0b990766c7292f1072f7c8f48b2927cc1c/hs2client-0.1.1-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "1502e47e32496165ebc3f8312dd6ace4", "sha256": "4ad7c7b114de14cd80bfdab20bbeb5dcc73dd5f15f70d04117e4f1fdbf9c49e8" }, "downloads": -1, "filename": "hs2client-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1502e47e32496165ebc3f8312dd6ace4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 32326, "upload_time": "2018-05-31T15:30:57", "url": "https://files.pythonhosted.org/packages/62/75/f8679994d859fbbb1f8dc3703e5967b22ad5200ea9594faad153afd63b58/hs2client-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7dc67ea9089bd27fdd2e49fbf7fe9096", "sha256": "45407ae190e60141b5d9bc10a0253de4650aa6f2652506ec3ef895e583294925" }, "downloads": -1, "filename": "hs2client-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7dc67ea9089bd27fdd2e49fbf7fe9096", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30419, "upload_time": "2018-05-31T15:31:08", "url": "https://files.pythonhosted.org/packages/08/cd/b844f0f87dddf23b9a814adf5ebe02873883118a6c3eb1c1794a0823aacd/hs2client-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0d6914ac57cf32e4987a70d999a83200", "sha256": "b9195b71a7eddcd336326049376b3b34e5d2a3cdeab5064bcee7399c0cf455d9" }, "downloads": -1, "filename": "hs2client-0.1.1-py2.7.egg", "has_sig": false, "md5_digest": "0d6914ac57cf32e4987a70d999a83200", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 80312, "upload_time": "2018-05-31T15:31:01", "url": "https://files.pythonhosted.org/packages/0c/a0/015883ffa4e3c0b9673560e2aca579338208bf4e06b59e12e1d461bd183e/hs2client-0.1.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "3cad1bb6df1abb9b7cba37c0535d9ba4", "sha256": "4f1a3ab1d98865962b78e29c977d8c0baa2b90a14e4998bb0d9fd08df86f3968" }, "downloads": -1, "filename": "hs2client-0.1.1-py3.6.egg", "has_sig": false, "md5_digest": "3cad1bb6df1abb9b7cba37c0535d9ba4", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 84300, "upload_time": "2018-05-31T15:31:05", "url": "https://files.pythonhosted.org/packages/fc/03/5b2cf6f6a0fad38a7b7024789e0b990766c7292f1072f7c8f48b2927cc1c/hs2client-0.1.1-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "1502e47e32496165ebc3f8312dd6ace4", "sha256": "4ad7c7b114de14cd80bfdab20bbeb5dcc73dd5f15f70d04117e4f1fdbf9c49e8" }, "downloads": -1, "filename": "hs2client-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1502e47e32496165ebc3f8312dd6ace4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 32326, "upload_time": "2018-05-31T15:30:57", "url": "https://files.pythonhosted.org/packages/62/75/f8679994d859fbbb1f8dc3703e5967b22ad5200ea9594faad153afd63b58/hs2client-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7dc67ea9089bd27fdd2e49fbf7fe9096", "sha256": "45407ae190e60141b5d9bc10a0253de4650aa6f2652506ec3ef895e583294925" }, "downloads": -1, "filename": "hs2client-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7dc67ea9089bd27fdd2e49fbf7fe9096", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30419, "upload_time": "2018-05-31T15:31:08", "url": "https://files.pythonhosted.org/packages/08/cd/b844f0f87dddf23b9a814adf5ebe02873883118a6c3eb1c1794a0823aacd/hs2client-0.1.1.tar.gz" } ] }