{ "info": { "author": "Daan Debie", "author_email": "daan.debie@klm.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only" ], "description": "json2hive\n=========\n\njson2hive is a command line utility that can automatically generate CREATE TABLE statements for\nHive tables backed by JSON data.\n\nFeatures\n--------\n\n- Automatically infer schema of JSON data by analysing JSON records\n- Supports external and managed Hive tables\n- Can be used as command line utility or programmatically\n\nInstallation\n------------\n\nYou can install ``json2hive`` using pip:\n\n.. code-block:: bash\n\n $ pip install json2hive\n\nIt is **strongly recommended** that you install ``json2hive`` inside a `virtual environment`_!\n\n.. _virtual environment: http://docs.python-guide.org/en/latest/dev/virtualenvs/\n\nUsage\n-----\n\n**On the Command Line**\n\nRun the following and follow the instructions:\n\n.. code-block:: bash\n\n $ json2hive --help\n\n**As a library**\n\n.. code-block:: python\n\n from json2hive.utils import infer_schema\n from json2hive.generators import generate_json_table_statement\n\n # infer schema from objects, these objects could be the result of json.loads(...)\n object1 = {'name': 'John', age: 25}\n object2 = {'name': 'Mary', age: 23}\n schema = infer_schema([object1, object2])\n\n # Generate CREATE TABLE statement\n statement = generate_json_table_statement('example', schema, managed=True)\n print(statement)\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/datadudes/json2hive", "keywords": "slack bot framework ai", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "json2hive", "package_url": "https://pypi.org/project/json2hive/", "platform": "", "project_url": "https://pypi.org/project/json2hive/", "project_urls": { "Homepage": "https://github.com/datadudes/json2hive" }, "release_url": "https://pypi.org/project/json2hive/0.1/", "requires_dist": [ "genson (==0.2.3)" ], "requires_python": "~=3.3", "summary": "Generate Hive CREATE TABLE statements from json data", "version": "0.1" }, "last_serial": 3300243, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "201320f94da78804cc4aecfe38da5421", "sha256": "abc15703215a21cd2b0cda15735506b8f28bbc26d558bee1458690c10ab8af37" }, "downloads": -1, "filename": "json2hive-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "201320f94da78804cc4aecfe38da5421", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": "~=3.3", "size": 6280, "upload_time": "2017-11-02T13:31:48", "url": "https://files.pythonhosted.org/packages/56/db/18edae4a92dc5a91ec00494ffaa2cceac130f39d486491a91deaee3eeec0/json2hive-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4678901ab0b91e636619b35e2dac715d", "sha256": "7bc07f9815fcc7f6c2b49a39bc174b0b99800991407bc48d2703d2b50e55d944" }, "downloads": -1, "filename": "json2hive-0.1.tar.gz", "has_sig": false, "md5_digest": "4678901ab0b91e636619b35e2dac715d", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.3", "size": 4172, "upload_time": "2017-11-02T13:31:49", "url": "https://files.pythonhosted.org/packages/85/b8/b8364f46a0f57053c6da41ce115a433eea4713877bcbcf4bb38469a21e07/json2hive-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "201320f94da78804cc4aecfe38da5421", "sha256": "abc15703215a21cd2b0cda15735506b8f28bbc26d558bee1458690c10ab8af37" }, "downloads": -1, "filename": "json2hive-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "201320f94da78804cc4aecfe38da5421", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": "~=3.3", "size": 6280, "upload_time": "2017-11-02T13:31:48", "url": "https://files.pythonhosted.org/packages/56/db/18edae4a92dc5a91ec00494ffaa2cceac130f39d486491a91deaee3eeec0/json2hive-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4678901ab0b91e636619b35e2dac715d", "sha256": "7bc07f9815fcc7f6c2b49a39bc174b0b99800991407bc48d2703d2b50e55d944" }, "downloads": -1, "filename": "json2hive-0.1.tar.gz", "has_sig": false, "md5_digest": "4678901ab0b91e636619b35e2dac715d", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.3", "size": 4172, "upload_time": "2017-11-02T13:31:49", "url": "https://files.pythonhosted.org/packages/85/b8/b8364f46a0f57053c6da41ce115a433eea4713877bcbcf4bb38469a21e07/json2hive-0.1.tar.gz" } ] }