{ "info": { "author": "Phat Vo", "author_email": "phat.vo@holistics.io", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "Holistics module: export data easier\n=========================\nThis module is made to help python user export data from QueryReport of Holistics.io, save as DataFrame object or .CSV file\n\nA simple way to use Holistics API\n\n```\nfrom holistics import HolisticsAPI\n\nresult = HolisticsAPI(api_key='Uf6aeraergFkV147Dmkrergga4EMLU2xhD17JDF13jM=')\nresult.ExportData(report_id='3123574', path='C:/output.csv')\n```\n\n# Requirement\n- Python's version: >= 3\n\n# Installation\nModule can be installed with pip:\n```\n$ pip install holistics\n```\nAlternatively, you can grab the latest source code from [GitHub](https://github.com/holistics/holistics-python):\n```\n$ git clone git clone git://github.com/holistics/holistics-python.git\n$ python setup.py install\n```\n\n# Documentation\n## **1. Import module**\n```\nfrom holistics import HolisticsAPI\n``` \n\n## **2. Initalize HolisticsAPI class:** \n**HolisticsAPI(api_key, url)**\n```\nobj = HolisticsAPI(api_key = 'aerg454hoiaKJGlgku', url = 'demo.holistics.io')\n```\n- **api-key (str):** API-key of your Holistics's user. \n - [How to get API-key](https://docs.holistics.io/api/)\n- **url (str) (optional):** Chang to other Holistics domain if you aren't using https://secure.holistics.io. \n - Ex: https://demo.holistics.io \n\n## **3. Export data:**\n**ExportData (report_id, filter_dict, _page_size, _page)** \n```\n my_dataframe = obj.ExportData(report_id='331235', filter_dict={'date': '2017-04-28'}, \n path = 'C:/output.csv', _page_size = 12, _page = 5)\n``` \n\n- **report_id (str):** id of report. Collect from URL. \n - Ex: https://secure.holistics.io/queries/12345-processing-report (12345)\n- **filter_dict (dict) (optional):** dictionary of filters that would be applied to report. \n - Ex: {\n 'tenant': 'holistics',\n 'date': '2017-04-28'\n }\n- **path (str) (optional):** If you want to store export data to file, set path variable. \n - Ex: D:/Data/output.csv\n- **_page_size (int) (optional):** Set the page size of the response. \n - Default value: 10000000\n- **_page (int) (optional):** Set the page number of data to fetch. \n - Default value: 10000000\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/holistics/holistics-python", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "holistics", "package_url": "https://pypi.org/project/holistics/", "platform": "", "project_url": "https://pypi.org/project/holistics/", "project_urls": { "Homepage": "https://github.com/holistics/holistics-python" }, "release_url": "https://pypi.org/project/holistics/0.0a11/", "requires_dist": [ "requests", "pandas" ], "requires_python": ">= 3, < 4", "summary": "Package to export report's data from holistics.io", "version": "0.0a11" }, "last_serial": 4476716, "releases": { "0.0a10": [ { "comment_text": "", "digests": { "md5": "e8ac2a01319d4f9c62eb883081c04862", "sha256": "2d3e7046c6a5d4ec52c0bbef2ace1798314bcfb64a5133182fba7ee6688f7513" }, "downloads": -1, "filename": "holistics-0.0a10-py3-none-any.whl", "has_sig": false, "md5_digest": "e8ac2a01319d4f9c62eb883081c04862", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">= 3, < 4", "size": 4596, "upload_time": "2018-06-29T04:47:41", "url": "https://files.pythonhosted.org/packages/e4/2c/2f70969008ba8faaa49c0a4b4857901b2bc1e0c2b16015ec9742142a1b3a/holistics-0.0a10-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "68405f0e75882fcc593060c08c33b157", "sha256": "bb6906787cb954d7d558689893458d8e74f87a091579b299ffa838301e406764" }, "downloads": -1, "filename": "holistics-0.0a10.tar.gz", "has_sig": false, "md5_digest": "68405f0e75882fcc593060c08c33b157", "packagetype": "sdist", "python_version": "source", "requires_python": ">= 3, < 4", "size": 3893, "upload_time": "2018-06-29T04:47:42", "url": "https://files.pythonhosted.org/packages/05/2e/34b02520765c27f260a6b721cbd2d5161f3df857f49eb06ec05aa80a29cc/holistics-0.0a10.tar.gz" } ], "0.0a11": [ { "comment_text": "", "digests": { "md5": "129e17deb36d6bf40f1cfdfc37642d93", "sha256": "e9b53e3fd644adeb88a0e0cd46ddffd4db2b8eb66ccae91674d5d9b4bb29e46d" }, "downloads": -1, "filename": "holistics-0.0a11-py3-none-any.whl", "has_sig": false, "md5_digest": "129e17deb36d6bf40f1cfdfc37642d93", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">= 3, < 4", "size": 4494, "upload_time": "2018-07-05T07:04:19", "url": "https://files.pythonhosted.org/packages/a4/61/bf6d8acb3485a52d1b1638ade05bf0449f87d07ba282a4c0fb393ed3f290/holistics-0.0a11-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e3ec0ba46af1041ac901ee7a2befe6e8", "sha256": "3362bc861b2d672a5525c5aaf524c22f6e643c9a7d5d557a897081a0f6ac3413" }, "downloads": -1, "filename": "holistics-0.0a11.tar.gz", "has_sig": false, "md5_digest": "e3ec0ba46af1041ac901ee7a2befe6e8", "packagetype": "sdist", "python_version": "source", "requires_python": ">= 3, < 4", "size": 3780, "upload_time": "2018-07-05T07:04:22", "url": "https://files.pythonhosted.org/packages/20/32/cbac9cfa7324c3f096ad0fbf154de4179eb09ea988e98458c7b676bea1e6/holistics-0.0a11.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "129e17deb36d6bf40f1cfdfc37642d93", "sha256": "e9b53e3fd644adeb88a0e0cd46ddffd4db2b8eb66ccae91674d5d9b4bb29e46d" }, "downloads": -1, "filename": "holistics-0.0a11-py3-none-any.whl", "has_sig": false, "md5_digest": "129e17deb36d6bf40f1cfdfc37642d93", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">= 3, < 4", "size": 4494, "upload_time": "2018-07-05T07:04:19", "url": "https://files.pythonhosted.org/packages/a4/61/bf6d8acb3485a52d1b1638ade05bf0449f87d07ba282a4c0fb393ed3f290/holistics-0.0a11-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e3ec0ba46af1041ac901ee7a2befe6e8", "sha256": "3362bc861b2d672a5525c5aaf524c22f6e643c9a7d5d557a897081a0f6ac3413" }, "downloads": -1, "filename": "holistics-0.0a11.tar.gz", "has_sig": false, "md5_digest": "e3ec0ba46af1041ac901ee7a2befe6e8", "packagetype": "sdist", "python_version": "source", "requires_python": ">= 3, < 4", "size": 3780, "upload_time": "2018-07-05T07:04:22", "url": "https://files.pythonhosted.org/packages/20/32/cbac9cfa7324c3f096ad0fbf154de4179eb09ea988e98458c7b676bea1e6/holistics-0.0a11.tar.gz" } ] }