{ "info": { "author": "Marian Steinbach", "author_email": "marian@sendung.de", "bugtrack_url": null, "classifiers": [], "description": "A basic OpenWeatherMap.org API client.\n\nNews on experimental caching:\n-----------------------------\n\nThe version here in the repository is currently ahead of the latest\nversion distributed on PyPy (0.9). It features Caching.\n\nIf the cache isn't explicitly deactivated, the function\n\"get\\_historic\\_weather()\" stores data fetched from the API in an SQLite\ndatabase. On subsequent requests, data is fetched directly from the\ndatabase, if available.\n\nIn order to deactivate the cache, use\n\n.. code:: python\n\n ow = openweather.OpenWeather(cache=False)\n\nand in order to explicitly set a path for the cache DB file, use\n\n.. code:: python\n\n ow = openweather.OpenWeather(cache=\"path/to/cache.db\")\n\nInstall\n-------\n\nTo install the latest release:\n\n::\n\n pip install openweather\n\nFor the latest version from the repository, use:\n\n::\n\n pip install git+https://github.com/marians/openweather.git\n\nPython module example\n---------------------\n\n.. code:: python\n\n import openweather\n from datetime import datetime\n\n # create client\n ow = openweather.OpenWeather()\n\n # find weather stations near me\n stations = ow.find_stations_near(\n 7.0, # longitude\n 50.0, # latitude\n 100 # kilometer radius\n )\n\n # iterate results\n for station in stations:\n print station\n\n # get current weather at Cologne/Bonn airport\n # (station id = 4885)\n print ow.get_weather(4885)\n\n # historic weather\n start_date = datetime(2013, 09, 10)\n end_date = datetime(2013, 09, 15)\n\n # default: hourly interval\n print ow.get_historic_weather(4885, start_date, end_date)\n\n # daily aggregates\n print ow.get_historic_weather(4885, start_date, end_date, \"day\")\n\nCommand line client example\n---------------------------\n\nPrint current weather at station ID 4885:\n\n.. code:: sh\n\n $ openweather -s 4885\n\nPrint historic weather for 2013-10-01 at station ID 4885:\n\n.. code:: sh\n\n $ openweather -s 4885 -d 20131001\n\nFor valid formats of the ``-d`` or ``--date`` parameter, see\n`daterangestr `__.\n\nPrint historic data in CSV format\n\n.. code:: sh\n\n $ python openweather.py -s 4885 -d 20131022 --csv\n\nThis is particularly usefull if you want to store that data to a file...\n\n.. code:: sh\n\n $ openweather -s 4885 -d 20131022 --csv > weather.csv\n\n... or want to manipulate and display it (using\n`csvkit `__):\n\n.. code:: sh\n\n $ openweather -s 4885 -d 20131027 --csv|csvcut -c 9,26,30,35,43|csvlook\n |-------------+-------------+------------+------------+---------------|\n | dt | main_temp_v | pressure_v | wind_deg_v | wind_speed_v |\n |-------------+-------------+------------+------------+---------------|\n | 1382824800 | 287.15 | 1005 | | 4.1 |\n | 1382835600 | 290.4 | 1008.25 | 170 | 5.93 |\n | 1382839200 | 289.15 | 1007.5 | 175 | 5.1 |\n ...\n | 1382904000 | 287.15 | 1007 | 210 | 5.9 |\n | 1382907600 | 287.15 | 1007 | 200 | 6.2 |\n | 1382911200 | 287.15 | 1006 | 177 | 5.1 |\n | | | | | |\n |-------------+-------------+------------+------------+---------------|\n\nLike openweather?\n-----------------\n\nFeel free to `tip me `__!", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/marians/openweather", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "openweather", "package_url": "https://pypi.org/project/openweather/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/openweather/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/marians/openweather" }, "release_url": "https://pypi.org/project/openweather/0.11/", "requires_dist": null, "requires_python": null, "summary": "OpenWeatherMap.org API wrapper", "version": "0.11" }, "last_serial": 1092318, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "4b93a9e6d17a603602db580f73c02f61", "sha256": "3097fd7a0cb992ce668f73e65d2afe5b6f393a25270ff87510c85fbead3e79d7" }, "downloads": -1, "filename": "openweather-0.1.tar.gz", "has_sig": false, "md5_digest": "4b93a9e6d17a603602db580f73c02f61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1012, "upload_time": "2012-12-03T19:44:21", "url": "https://files.pythonhosted.org/packages/7f/f4/fba51cf6af7ea5d2ae0a61d6567114f58046769ac10453b7444dde3a77a0/openweather-0.1.tar.gz" } ], "0.10": [ { "comment_text": "", "digests": { "md5": "0d54f14926676d0a666a67a966e2068f", "sha256": "6be8bd6a1569f1e9b16a5b1dc9a8b04f802186dc6c191bbe1b6533dbf9a27e62" }, "downloads": -1, "filename": "openweather-0.10.tar.gz", "has_sig": false, "md5_digest": "0d54f14926676d0a666a67a966e2068f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4853, "upload_time": "2014-05-14T14:43:50", "url": "https://files.pythonhosted.org/packages/07/27/50b1d711cdb8b4ad99b7bca0171293ce357984df54a5e75b7702a4064f9f/openweather-0.10.tar.gz" } ], "0.11": [ { "comment_text": "", "digests": { "md5": "8f2658e3d117b1e6d07c702fde9a86f5", "sha256": "912cc5cf2c2d0b3e277faff5973ee857b3cbca855770303811fdbff13aa07ef4" }, "downloads": -1, "filename": "openweather-0.11.tar.gz", "has_sig": false, "md5_digest": "8f2658e3d117b1e6d07c702fde9a86f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4921, "upload_time": "2014-05-14T15:03:29", "url": "https://files.pythonhosted.org/packages/6c/95/deacd729c73d51abdef4083694d551c133614f4dd109ee1cde2987b25361/openweather-0.11.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "dada52638564d2b0d2f7e0dfaa68d10b", "sha256": "7ad24b6e8925d76ddef1e06c85c4b91fbb343a8121449c38e04b923014107a4c" }, "downloads": -1, "filename": "openweather-0.2.tar.gz", "has_sig": false, "md5_digest": "dada52638564d2b0d2f7e0dfaa68d10b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1053, "upload_time": "2013-10-24T10:16:04", "url": "https://files.pythonhosted.org/packages/a3/09/8479f5830755ebaeddde6fcfb170d08142f8112ae58535bca2389a8faa95/openweather-0.2.tar.gz" }, { "comment_text": "", "digests": { "md5": "69bf0ea7d7e04b9197b0be5ff8096dda", "sha256": "d30d584287569d375f15100b5ee09324436ec33f171f02a7193b1c2f8061b19f" }, "downloads": -1, "filename": "openweather-0.2.zip", "has_sig": false, "md5_digest": "69bf0ea7d7e04b9197b0be5ff8096dda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1345, "upload_time": "2013-10-24T10:16:08", "url": "https://files.pythonhosted.org/packages/2e/b4/b06b55b2b6b982a4beec87dcd2bf6bf516115589fc237fc6ac739b1c1b18/openweather-0.2.zip" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "5229a1d620498ffaed9511bc85618c26", "sha256": "c8df0db4c9d717262223cfcf3dd2708317b1a16dc22e78b18218b835ebc8fc0d" }, "downloads": -1, "filename": "openweather-0.3.tar.gz", "has_sig": false, "md5_digest": "5229a1d620498ffaed9511bc85618c26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1129, "upload_time": "2013-10-24T10:30:56", "url": "https://files.pythonhosted.org/packages/7a/a4/9e83ee341e258c9507deb2676714a4faeb39e4f96e20c90267bb774df881/openweather-0.3.tar.gz" }, { "comment_text": "", "digests": { "md5": "e459af2ab12fb29a13bc17b560d1f955", "sha256": "0ba3fe611dc4a12b187a81db875fd971dde4e6333a7410bac7dac0ce79c2377a" }, "downloads": -1, "filename": "openweather-0.3.zip", "has_sig": false, "md5_digest": "e459af2ab12fb29a13bc17b560d1f955", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1420, "upload_time": "2013-10-24T10:31:00", "url": "https://files.pythonhosted.org/packages/85/0e/6b55ec46f53788fe26bdd2a3cf189ac6404e283128f607a4748aa5295d5e/openweather-0.3.zip" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "0c883cdb368e9b3763f0bc553c2b6c39", "sha256": "38b35f1dcc134feaeadbc7d269286404ce5d44375863c02bf4393b684f505b90" }, "downloads": -1, "filename": "openweather-0.4.tar.gz", "has_sig": false, "md5_digest": "0c883cdb368e9b3763f0bc553c2b6c39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1595, "upload_time": "2013-10-27T11:57:15", "url": "https://files.pythonhosted.org/packages/e2/a8/19aec19d5a212af9ff6dc8170f03c81787bf551477f76a7654cfa6b3b54a/openweather-0.4.tar.gz" }, { "comment_text": "", "digests": { "md5": "49f721ef284cdd3932cf3e23ed418a8e", "sha256": "e3833c20549560fc9c8b32402351647273cf3dfae183e0f61d7d17d59f8232db" }, "downloads": -1, "filename": "openweather-0.4.zip", "has_sig": false, "md5_digest": "49f721ef284cdd3932cf3e23ed418a8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1906, "upload_time": "2013-10-27T11:57:17", "url": "https://files.pythonhosted.org/packages/46/c8/41d14ddce6e6f9ae93bca2c822730bdc809f6e3f49147da151108ddd3539/openweather-0.4.zip" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "d0db03a46c1f9337aaf572f61e6e1569", "sha256": "2a8e9da623bda913bc309a200678388641eb2da2108efccd63c9e3815ddfeef8" }, "downloads": -1, "filename": "openweather-0.6.tar.gz", "has_sig": false, "md5_digest": "d0db03a46c1f9337aaf572f61e6e1569", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2225, "upload_time": "2013-10-28T08:00:39", "url": "https://files.pythonhosted.org/packages/6c/c9/61fe5355ca8e58bce6b1ee72730645f28e11cc3daaa000d10a57c68b88c5/openweather-0.6.tar.gz" }, { "comment_text": "", "digests": { "md5": "64a64a6ed85c6f4cf761df3f156cbfac", "sha256": "295ad02b884fe4e8af73784baf6794825e540396afd750277daac45e16d70419" }, "downloads": -1, "filename": "openweather-0.6.zip", "has_sig": false, "md5_digest": "64a64a6ed85c6f4cf761df3f156cbfac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2517, "upload_time": "2013-10-28T08:00:42", "url": "https://files.pythonhosted.org/packages/73/c5/b0839266b5bac630c7cfed0efb725d3e6ac7f35394b47435aa0a87dcc386/openweather-0.6.zip" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "404106f01a4758d97530475c8e4415de", "sha256": "e459cdaee3cb79dd88fcbeb57c58ecccb4ed75d22be53b01a0877713d31749ba" }, "downloads": -1, "filename": "openweather-0.7.tar.gz", "has_sig": false, "md5_digest": "404106f01a4758d97530475c8e4415de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2589, "upload_time": "2013-11-24T11:49:44", "url": "https://files.pythonhosted.org/packages/9d/3e/ec20d18dd498eb4b35b6242da596a22f382760d4e5864dac14759f6cf56c/openweather-0.7.tar.gz" }, { "comment_text": "", "digests": { "md5": "ea289f2b645f8244a99852e3e32a06f7", "sha256": "5faf3e8b830bb62ceada88f1ca5241a4d40bfcd52a5ef62c1c77c4123c8d0db3" }, "downloads": -1, "filename": "openweather-0.7.zip", "has_sig": false, "md5_digest": "ea289f2b645f8244a99852e3e32a06f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4178, "upload_time": "2013-11-24T11:49:41", "url": "https://files.pythonhosted.org/packages/9c/f9/993a40529ceec1cef1d17f581ce13b26485c981f2fd7dd231233884e9aa6/openweather-0.7.zip" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "bfa4be8181603d5dbb90d8400aa18417", "sha256": "3e77dbafb7513edf85a7dc6c9cb92f9148f3915da1ca291bcfa1214890f3a3f8" }, "downloads": -1, "filename": "openweather-0.8.tar.gz", "has_sig": false, "md5_digest": "bfa4be8181603d5dbb90d8400aa18417", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3789, "upload_time": "2013-12-06T14:34:24", "url": "https://files.pythonhosted.org/packages/64/81/67145ab08234a334d4cb11191b6504c8ad8ab6e88577904917a825010f3a/openweather-0.8.tar.gz" } ], "0.9": [ { "comment_text": "", "digests": { "md5": "0a18115ce9862b73f7a0c4eb143d4d8b", "sha256": "5586ecb84f17271fb6c10422fbea04fe5e361caaa2ea73c606bccfc11ee9dbd7" }, "downloads": -1, "filename": "openweather-0.9.tar.gz", "has_sig": false, "md5_digest": "0a18115ce9862b73f7a0c4eb143d4d8b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3786, "upload_time": "2013-12-06T14:42:28", "url": "https://files.pythonhosted.org/packages/2f/24/e5d77006e8d8c4cbc03a3e7e0c9bef5e664f590cb78fd4ed989ac17b857f/openweather-0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8f2658e3d117b1e6d07c702fde9a86f5", "sha256": "912cc5cf2c2d0b3e277faff5973ee857b3cbca855770303811fdbff13aa07ef4" }, "downloads": -1, "filename": "openweather-0.11.tar.gz", "has_sig": false, "md5_digest": "8f2658e3d117b1e6d07c702fde9a86f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4921, "upload_time": "2014-05-14T15:03:29", "url": "https://files.pythonhosted.org/packages/6c/95/deacd729c73d51abdef4083694d551c133614f4dd109ee1cde2987b25361/openweather-0.11.tar.gz" } ] }