{ "info": { "author": "Oncleben31", "author_email": "oncleben31@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "\n\n# Vigilance M\u00e9t\u00e9o\n\n[![Build Status](https://travis-ci.com/oncleben31/vigilancemeteo.svg?branch=master)](https://travis-ci.com/oncleben31/vigilancemeteo)\n[![codecov](https://codecov.io/gh/oncleben31/vigilancemeteo/branch/master/graph/badge.svg)](https://codecov.io/gh/oncleben31/vigilancemeteo)\n[![PyPI version](https://badge.fury.io/py/vigilancemeteo.svg)](https://badge.fury.io/py/vigilancemeteo)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nVigilance M\u00e9t\u00e9o provides a python API to fetch weather alerts in France or Andorre from M\u00e9t\u00e9o France ([http://vigilance.meteofrance.com](http://vigilance.meteofrance.com)) website.\n\n## Classes descritpion\n\n`VigilanceMeteoFranceProxy` class manages the communication with the source website. The\nalgorithm request a cheksum tiny file to download and update the XML source only when\nneeded.\n\n`DepartmentWeatherAlert` class allows to fetch all weather alerts for a french department or Andorre. Each `DepartmenWeatherAlert` instance can have its own proxy, but you should use\nonly one proxy for all `DepartmenWeatherAlert` instances in your program to avoid too much HTTP request on source website.\n\n### Public attributes from `DepartmentWeatherAlert` class\n\n- `department_color`: return the overall criticity color for the department\n- `additional_info_URL`: return the URL to access more information about\ndepartment weather alerts from the M\u00e9t\u00e9oFrance website\n- `bulletin_date`: return the latest bulletin update date & time with timezone\n- `department`: get or set the department number corresponding to the area\nwatched\n- `alerts_list`: return the list of all alert types\n- `proxy`: return the client (a `VigilanceMeteoFranceProxy` instance) used by the\n object\n\n### Public methods from `DepartmentWeatherAlert` class\n\n- `update_department_status()`: update alerts list by feching latest info from\nM\u00e9t\u00e9oFrance forcast.\n- `summary_message(format)`: return a string with textual synthesis of the\nactive alerts in department. According to value of 'format' parameter,\nthe string return change: 'text' (default) or 'html'\n\n### Public attributes from `VigilanceMeteoFranceProxy` class\n\n- `xml_tree` = XML representation of the weather alert bulletin\n- `bulletin_date` = Date of the bulletin (with timezone)\n- `checksum` = Checksum of the weather alert bulletin\n- `status` = current status of the proxy (possible value in `constant.py`)\n\n### Public Methods from `VigilanceMeteoFranceProxy`class\n\n- `update_date()`: Check if new information are available and download them if any.\n- `get_alert_list(department)`: of a given department return the list of the alerts.\n\n## Examples\n\n >>>import vigilancemeteo\n\n >>>zone = vigilancemeteo.DepartmentWeatherAlert('92')\n\n >>>zone.department_color\n 'Jaune'\n\n >>>zone.additional_info_URL\n 'http://vigilance.meteofrance.com/Bulletin_sans.html?a=dept75&b=1&c='\n\n >>>zone.summary_message('text')\n 'Alerte m\u00e9t\u00e9o Jaune en cours :\\n - Vent violent: Jaune'\n\n## Installation\n\nYou can use the official release using the [pyPi package](https://pypi.org/project/vigilancemeteo/). Install it with the command:\n`pip install vigilancemeteo`\n\n## Contribute\n\nIf you want to contribute to the development:\n\n- Start by cloning this repository.\n- Setup a virtual environment\n- Install the python package in edition mode: `pip install -e .`\n- Create a branch for your feature\n- Test your change using `tox`\n- Send a PR when ready.\n\n## References\n\nThank you to Lunarok to show an implementation example [in PHP for Jeedom](https://github.com/lunarok/jeedom_vigilancemeteo). Lot of inspiration for the first python implementation.\n\nSince release 3.0.0, the python implementation use the the [recommendation made by M\u00e9t\u00e9o\nFrance on www.data.gouv.fr](https://www.data.gouv.fr/fr/datasets/diffusion-temps-reel-de-la-vigilance-meteorologique-en-metropole/).\n\n## License\n\nThis software is under the MIT License.\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/oncleben31/vigilancemeteo", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "vigilancemeteo", "package_url": "https://pypi.org/project/vigilancemeteo/", "platform": "", "project_url": "https://pypi.org/project/vigilancemeteo/", "project_urls": { "Homepage": "https://github.com/oncleben31/vigilancemeteo" }, "release_url": "https://pypi.org/project/vigilancemeteo/3.0.0/", "requires_dist": [ "lxml", "pytz" ], "requires_python": ">=2.7.0", "summary": "python API python to get active weather alerts fromhttp://vigilance.meteofrance.com/", "version": "3.0.0" }, "last_serial": 5152183, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "65fb8a2678d224da42efb341e63cbc0f", "sha256": "295745b99617a46564ef86ee16760cb66e56cd524301af00eebde489b82d3568" }, "downloads": -1, "filename": "vigilancemeteo-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "65fb8a2678d224da42efb341e63cbc0f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7.0", "size": 6411, "upload_time": "2018-06-10T06:56:01", "url": "https://files.pythonhosted.org/packages/a0/1d/468048ccf486703ac25692643be357ed9f6dca89b33d1f6a8db7efc74dbc/vigilancemeteo-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bb241af89f50dccfc1b99867e0092dbd", "sha256": "7d2f8bcb748cc42dd773adb350e82a7ee5090d88b2b0af536bb9dfb93c634d0f" }, "downloads": -1, "filename": "vigilancemeteo-1.1.0.tar.gz", "has_sig": false, "md5_digest": "bb241af89f50dccfc1b99867e0092dbd", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7.0", "size": 6857, "upload_time": "2018-06-10T06:56:02", "url": "https://files.pythonhosted.org/packages/92/f3/2921ee37597b9fe5f295339d3ab2a4be9ce9437509d0e33b94aa7204a451/vigilancemeteo-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "495b32e49a3d2988a413eb0b82548e22", "sha256": "175aeaf920fbbfc9381e1e7f25b887fd110f596f49339d3bf4e3ca43ff434c99" }, "downloads": -1, "filename": "vigilancemeteo-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "495b32e49a3d2988a413eb0b82548e22", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7.0", "size": 7192, "upload_time": "2018-06-16T13:43:56", "url": "https://files.pythonhosted.org/packages/06/c9/7f1178ac1b120169c398cca1af96997ee58e22a14a8d6db9903841f40085/vigilancemeteo-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7d6c4c2bee08c3922bfafc6d9cd8eb0d", "sha256": "0ff048a3c0dba68edfb35a87f93b6cc40dc3d586bb800eeb97e7b9cea0e6f5c3" }, "downloads": -1, "filename": "vigilancemeteo-1.2.0.tar.gz", "has_sig": false, "md5_digest": "7d6c4c2bee08c3922bfafc6d9cd8eb0d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7.0", "size": 7197, "upload_time": "2018-06-16T13:43:57", "url": "https://files.pythonhosted.org/packages/93/8c/266c17c7b201b1f55602dd1e6c377e347fe91c07d4cda62d6cb411d7cf01/vigilancemeteo-1.2.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "967ccac5e16bac7aeba4d10573837d01", "sha256": "50f4710079ff3418950b66320864e07a81b0b310485903d34b5513ec74f9f1f9" }, "downloads": -1, "filename": "vigilancemeteo-2.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "967ccac5e16bac7aeba4d10573837d01", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7.0", "size": 7566, "upload_time": "2019-03-13T23:12:59", "url": "https://files.pythonhosted.org/packages/c4/48/a191f5e075e65a1d9b02a87af437abf0c4310419f1f5c19bb1d098182ec3/vigilancemeteo-2.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e35f65d569371c79718ce1e60a269a94", "sha256": "9fc32a2067021b2a734547264e7c43d9aff1b9a4f673ac581355a65783e200d1" }, "downloads": -1, "filename": "vigilancemeteo-2.0.0.tar.gz", "has_sig": false, "md5_digest": "e35f65d569371c79718ce1e60a269a94", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7.0", "size": 7640, "upload_time": "2019-03-13T23:13:01", "url": "https://files.pythonhosted.org/packages/d6/27/faac54c142f1a6c803414e5ecf9f1fec445cb2c5640879dd0b21d765e588/vigilancemeteo-2.0.0.tar.gz" } ], "3.0.0": [ { "comment_text": "", "digests": { "md5": "7fec8d8e6b051a64b7d781d43f72a09b", "sha256": "149032106bebb8047127545e9e0459a13c57185fd58fd929c6cb26e481b23265" }, "downloads": -1, "filename": "vigilancemeteo-3.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7fec8d8e6b051a64b7d781d43f72a09b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7.0", "size": 39308, "upload_time": "2019-04-16T21:29:43", "url": "https://files.pythonhosted.org/packages/0e/b3/10f95ff868e775a69bacf68668393818aaf01ca056a6c1574245ea416e15/vigilancemeteo-3.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cd8dabd39e344ae4d89e5e6dccb8c76d", "sha256": "bb86de14c3003c5b89bd8d434860985392744eb2435c14970c03fc31a0369c92" }, "downloads": -1, "filename": "vigilancemeteo-3.0.0.tar.gz", "has_sig": false, "md5_digest": "cd8dabd39e344ae4d89e5e6dccb8c76d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7.0", "size": 20388, "upload_time": "2019-04-16T21:29:45", "url": "https://files.pythonhosted.org/packages/63/62/7e065849ffd90953b0acde058567c8b687ffbf5277deee815a52914cb6ba/vigilancemeteo-3.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7fec8d8e6b051a64b7d781d43f72a09b", "sha256": "149032106bebb8047127545e9e0459a13c57185fd58fd929c6cb26e481b23265" }, "downloads": -1, "filename": "vigilancemeteo-3.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7fec8d8e6b051a64b7d781d43f72a09b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7.0", "size": 39308, "upload_time": "2019-04-16T21:29:43", "url": "https://files.pythonhosted.org/packages/0e/b3/10f95ff868e775a69bacf68668393818aaf01ca056a6c1574245ea416e15/vigilancemeteo-3.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cd8dabd39e344ae4d89e5e6dccb8c76d", "sha256": "bb86de14c3003c5b89bd8d434860985392744eb2435c14970c03fc31a0369c92" }, "downloads": -1, "filename": "vigilancemeteo-3.0.0.tar.gz", "has_sig": false, "md5_digest": "cd8dabd39e344ae4d89e5e6dccb8c76d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7.0", "size": 20388, "upload_time": "2019-04-16T21:29:45", "url": "https://files.pythonhosted.org/packages/63/62/7e065849ffd90953b0acde058567c8b687ffbf5277deee815a52914cb6ba/vigilancemeteo-3.0.0.tar.gz" } ] }