{
"info": {
"author": "Marian Steinbach",
"author_email": "marian@sendung.de",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: Manufacturing",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Topic :: Communications",
"Topic :: Database",
"Topic :: Internet",
"Topic :: Scientific/Engineering :: Atmospheric Science",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Archiving",
"Topic :: Text Processing",
"Topic :: Utilities"
],
"description": ".. image:: https://img.shields.io/badge/Python-2.7-green.svg\n :target: https://github.com/hiveeyes/dwdweather2\n\n.. image:: https://img.shields.io/pypi/v/dwdweather2.svg\n :target: https://pypi.org/project/dwdweather2/\n\n.. image:: https://img.shields.io/github/tag/hiveeyes/dwdweather2.svg\n :target: https://github.com/hiveeyes/dwdweather2\n\n.. image:: https://assets.okfn.org/images/ok_buttons/od_80x15_red_green.png\n :target: https://okfn.org/opendata/\n\n.. image:: https://assets.okfn.org/images/ok_buttons/oc_80x15_blue.png\n :target: https://okfn.org/opendata/\n\n.. image:: https://assets.okfn.org/images/ok_buttons/os_80x15_orange_grey.png\n :target: https://okfn.org/opendata/\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n :target: https://github.com/python/black\n\n\n.. _dwdweather2-readme:\n\n###########\ndwdweather2\n###########\n\nPython client to access weather data from Deutscher Wetterdienst\n(`DWD `__), the federal meteorological service in\nGermany.\n\n************\nInstallation\n************\n::\n\n pip install dwdweather2\n\n\n********\nSynopsis\n********\n\nCommand line usage\n==================\n\nGet all stations with ``hourly`` resolution (default)::\n\n dwdweather stations\n\nGet all stations with ``10_minutes`` resolution::\n\n dwdweather stations --resolution 10_minutes\n\nGet closest station (first argument is longitude, second is latitude)::\n\n dwdweather station 7.0 51.0\n\nExport stations as CSV::\n\n dwdweather stations --type csv --file stations.csv\n\nExport stations as GeoJSON::\n\n dwdweather stations --type geojson --file stations.geojson\n\nGet weather at station for certain hour (UTC)::\n\n dwdweather weather 2667 2019-06-01T15:00\n\nTo restrict the import to specified categories, run the program like::\n\n dwdweather weather 2667 2019-06-01T15:00 --categories air_temperature precipitation pressure\n\nFinally, to drop the cache database before performing any work, use the ``--reset-cache`` option::\n\n dwdweather stations --reset-cache\n\nChoose dataset with ``10_minutes`` resolution::\n\n dwdweather weather 2667 2019-06-01T15:20 --resolution=10_minutes\n\n\nUsage as library\n================\n\n.. code:: python\n\n from datetime import datetime\n from dwdweather import DwdWeather\n\n # Create client object.\n dw = DwdWeather(resolution=\"hourly\")\n\n # Find closest station to position.\n closest = dw.nearest_station(lon=7.0, lat=51.0)\n\n # The hour you're interested in.\n # The example is 2014-03-22 12:00 (UTC).\n query_hour = datetime(2014, 3, 22, 12)\n\n result = dw.query(station_id=closest[\"station_id\"], timestamp=query_hour)\n print(result)\n\n``DwdWeather.query()`` returns a dictionary with the full set of\npossible keys as outlined in ``doc/usage-library.rst``.\n\n\n*****\nNotes\n*****\n\n- Data is cached in a local sqlite3 database to improve query\n performance for consecutive invocations.\n- The \"stations cache\" is filled upon first request to\n ``DwdWeather.stations()`` or ``DwdWeather.nearest_station()``\n- The \"stations cache\" will not be refreshed automatically. Use\n ``DwdWeather.import_stations()`` to do this.\n- The \"measures cache\" is filled upon first access to measures using\n ``DwdWeather.query()`` and updated whenever a query cannot be\n fulfilled from the cache.\n- The cache by default resides in the ``~/.dwd-weather`` directory.\n This can be controlled using the ``cachepath`` argument of\n ``DwdWeather()``.\n- The amount of data can be ~60 MB per station for full historic extent\n and will obviously increase by time.\n- If weather data is queried and the query can't be fulfilled from the\n cache, data is loaded from the server - even if the data has been\n updated a second before. If the server doesn't have data for the\n requested time (e.g.\u00a0since it's not yet available), this\n unnecessarily causes network traffic and wait time. Certainly space\n for improvement here.\n\n\n********\nLicenses\n********\n\nCode license\n============\nLicensed under the MIT license. See file ``LICENSE`` for details.\n\nData license\n============\nThe DWD has information about their re-use policy in\n`German `__\nand\n`English `__.\n\n\n******\nStatus\n******\nThis piece of software is in a very early stage. No test cases yet. Only\ntested with Python 3.6. Use at your own risk.\n\nCredits\n=======\nThanks to `Marian Steinbach `__, `Philipp\nKlaus `__ and all people from\n`DWD `__.\n\nChangelog\n=========\nSee file ``CHANGES.rst``.",
"description_content_type": "",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/hiveeyes/dwdweather2",
"keywords": "dwd cdc deutscher wetterdienst climate data center weather opendata data acquisition transformation export geospatial temporal timeseries sensor network observation http rest api json csvrdbms sql sqlite grafana",
"license": "MIT",
"maintainer": "",
"maintainer_email": "",
"name": "dwdweather2",
"package_url": "https://pypi.org/project/dwdweather2/",
"platform": "",
"project_url": "https://pypi.org/project/dwdweather2/",
"project_urls": {
"Homepage": "https://github.com/hiveeyes/dwdweather2"
},
"release_url": "https://pypi.org/project/dwdweather2/0.10.0/",
"requires_dist": null,
"requires_python": "",
"summary": "Python client to access weather data from Deutscher Wetterdienst (DWD), the federal meteorological service in Germany.",
"version": "0.10.0"
},
"last_serial": 5909366,
"releases": {
"0.10.0": [
{
"comment_text": "",
"digests": {
"md5": "a01f818ef816d8f05c701c40d737b486",
"sha256": "bd54cf2e1f570fde6dccdf449115edb83fdf54935467fde244b861fe9eee13dc"
},
"downloads": -1,
"filename": "dwdweather2-0.10.0.tar.gz",
"has_sig": false,
"md5_digest": "a01f818ef816d8f05c701c40d737b486",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 18272,
"upload_time": "2019-09-30T22:37:32",
"url": "https://files.pythonhosted.org/packages/e9/83/61099b2f85865905c7c2e1c0ff24611e10e77e73313a1755c9bca36159ef/dwdweather2-0.10.0.tar.gz"
}
],
"0.8.0": [
{
"comment_text": "",
"digests": {
"md5": "6d3de4a8ed0d09753cfa2db44a5060be",
"sha256": "faa7e7e6e915459e34f2e7463b17ee989d6ec57b0d8f6dc5b0e513f41d5d9c44"
},
"downloads": -1,
"filename": "dwdweather2-0.8.0.tar.gz",
"has_sig": false,
"md5_digest": "6d3de4a8ed0d09753cfa2db44a5060be",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 17506,
"upload_time": "2019-06-03T01:25:47",
"url": "https://files.pythonhosted.org/packages/b9/0c/fb48f9e43f263a493f0a5e13d00bbe6ca0a31d11958b444836d218951a25/dwdweather2-0.8.0.tar.gz"
}
],
"0.8.2": [
{
"comment_text": "",
"digests": {
"md5": "9aefd01c0f5aee0ec731f8ebb3b05ee0",
"sha256": "6d58750ff5d617b2e52f31dd56a997ad776e9471ce4ffb985d9195ad9b75222b"
},
"downloads": -1,
"filename": "dwdweather2-0.8.2.tar.gz",
"has_sig": false,
"md5_digest": "9aefd01c0f5aee0ec731f8ebb3b05ee0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 17929,
"upload_time": "2019-06-03T19:42:05",
"url": "https://files.pythonhosted.org/packages/33/02/7b08967b6ff9d8360e2fc1234ef860f70e858a7fc4cc9b09dcf3d189b992/dwdweather2-0.8.2.tar.gz"
}
],
"0.9.0": [
{
"comment_text": "",
"digests": {
"md5": "7c93704927352d720f654d57f8adcfd1",
"sha256": "22be3b9d6466560f5edfda2ff3142367823e6e07b53c96816439aa4a1ba838a5"
},
"downloads": -1,
"filename": "dwdweather2-0.9.0.tar.gz",
"has_sig": false,
"md5_digest": "7c93704927352d720f654d57f8adcfd1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 17834,
"upload_time": "2019-06-27T01:20:36",
"url": "https://files.pythonhosted.org/packages/9c/c5/44867309d2baa85c8fc12a7216a941597848e4efeab1e060c9fd38af3296/dwdweather2-0.9.0.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "a01f818ef816d8f05c701c40d737b486",
"sha256": "bd54cf2e1f570fde6dccdf449115edb83fdf54935467fde244b861fe9eee13dc"
},
"downloads": -1,
"filename": "dwdweather2-0.10.0.tar.gz",
"has_sig": false,
"md5_digest": "a01f818ef816d8f05c701c40d737b486",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 18272,
"upload_time": "2019-09-30T22:37:32",
"url": "https://files.pythonhosted.org/packages/e9/83/61099b2f85865905c7c2e1c0ff24611e10e77e73313a1755c9bca36159ef/dwdweather2-0.10.0.tar.gz"
}
]
}