{ "info": { "author": "Ekapope Viriyakovithya", "author_email": "ekapope.v@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# WorldWeatherOnline historical weather data API wrapper\n\nThis package is used to retrieve and transform historical weather data from www.worldweatheronline.com into pandas dataframe and csv.\n\nYou can get API key for free (free trial 500 requests/key for 60 days, as of 30-May-2019).\n\nexample API explorer: https://www.worldweatheronline.com/developer/premium-api-explorer.aspx\n\n\n#### Install the package:\n```\npip install wwo-hist\n```\n\n#### Import package\n```python\nfrom wwo_hist import retrieve_hist_data\n```\n\n#### Set working directory to store output csv file(s)\n```python\nimport os\nos.chdir(\".\\YOUR_PATH\")\n```\n\nInput: api_key, location_list, start_date, end_date, frequency\n\nOutput: location_name.csv\n\n\n#### Example code\n```python\nfrequency=3\nstart_date = '11-DEC-2018'\nend_date = '11-MAR-2019'\napi_key = 'YOUR_API_KEY'\nlocation_list = ['singapore','california']\n\nhist_weather_data = retrieve_hist_data(api_key,\n location_list,\n start_date,\n end_date,\n frequency,\n location_label = False,\n export_csv = True,\n store_df = True)\n```\n\n#### Parameters:\n```\napi_key: string\n(Premium/ free trial) API key from worldweatheronline.com\n\nlocation_list: list of string\nUS Zipcode, UK Postcode, Canada Postalcode, IP address, Latitude/Longitude (decimal degree) or city name\n\nstart_date: string\nPreferred date format: 'dd-mmm-yyyy'\n\nend_date: string\nPreferred date format: 'dd-mmm-yyyy'\n\nfrequency: integer\n1, 3, 6, 12, 24\n1 hourly, 3 hourly, 6 hourly, 12 hourly (day/night) or 24 hourly (day average)\n\nlocation_label: bool, default = False\nIf True, all column names will have city name as prefix.\n\nexport_csv: bool, default = True\nIf False, no csv file will be exported to current directory.\n\nstore_df: bool, default = False\nIf True, retrieved dataframe(s) will be stored as list in the work space.\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/ekapope/WorldWeatherOnline", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "wwo-hist", "package_url": "https://pypi.org/project/wwo-hist/", "platform": "", "project_url": "https://pypi.org/project/wwo-hist/", "project_urls": { "Homepage": "https://github.com/ekapope/WorldWeatherOnline" }, "release_url": "https://pypi.org/project/wwo-hist/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "This package is used to retrieve and transform historical weather data from www.worldweatheronline.com into pandas dataframe and csv.", "version": "0.0.4" }, "last_serial": 5340870, "releases": { "0.0.4": [ { "comment_text": "", "digests": { "md5": "40f7ccfa8c12fb2e1f15aabf2fd6aed0", "sha256": "e0fce914a71ea3169de4c7245127a1a06d8a1382c38a354297e47472c9e560b2" }, "downloads": -1, "filename": "wwo_hist-0.0.4.tar.gz", "has_sig": false, "md5_digest": "40f7ccfa8c12fb2e1f15aabf2fd6aed0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3895, "upload_time": "2019-05-31T03:37:31", "url": "https://files.pythonhosted.org/packages/9e/4b/e4f82813f1bd33195ca5eca204c7c312850592aba45dd819de0f2250d7fd/wwo_hist-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "40f7ccfa8c12fb2e1f15aabf2fd6aed0", "sha256": "e0fce914a71ea3169de4c7245127a1a06d8a1382c38a354297e47472c9e560b2" }, "downloads": -1, "filename": "wwo_hist-0.0.4.tar.gz", "has_sig": false, "md5_digest": "40f7ccfa8c12fb2e1f15aabf2fd6aed0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3895, "upload_time": "2019-05-31T03:37:31", "url": "https://files.pythonhosted.org/packages/9e/4b/e4f82813f1bd33195ca5eca204c7c312850592aba45dd819de0f2250d7fd/wwo_hist-0.0.4.tar.gz" } ] }