Name | pymetaf JSON |
Version |
1.0.3
JSON |
| download |
home_page | https://github.com/Clarmy/pymetaf |
Summary | A python package for parsing metar & taf raw text |
upload_time | 2024-02-01 07:20:45 |
maintainer | |
docs_url | None |
author | Wentao Li |
requires_python | >=3.7 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
|
coveralls test coverage |
No coveralls.
|
# pymetaf
[![Python package](https://github.com/cnmetlab/pymetaf/actions/workflows/python-package.yml/badge.svg)](https://github.com/cnmetlab/pymetaf/actions/workflows/python-package.yml)
[![PyPI version](https://badge.fury.io/py/pymetaf.svg)](https://badge.fury.io/py/pymetaf)
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/Clarmy/pymetaf/issues)
This is a python package to parse raw METAR and TAF report text.
## Installation
1. Clone this repository and run `$ python setup.py install` in your terminal.
2. Use Pip `$ pip install pymetaf`
## Usage
```python
>>> from pymetaf import parse_text
>>> text = 'METAR ZYAS 250500Z 21009G14MPS 6000 NSC 18/08 Q1018 NOSIG'
>>> parse_text(text, 2021, 5)
{'kind': 'METAR',
'icao': 'ZYAS',
'datetime': '2021-05-25T05:00:00+00:00',
'wind_direction': 210,
'wind_direction_units': 'degree',
'wind_speed': 9,
'wind_speed_units': 'm/s',
'gust': 14,
'wind_direction_range': None,
'cavok': False,
'visibility': 6000,
'visibility_units': 'm',
'temperature': 18,
'dew_temperature': 8,
'temperature_units': 'degree C',
'qnh': 1018,
'qnh_units': 'hPa',
'cloud': [{'cloud_mask': 0,
'cloud_height': None,
'cloud_height_units': 'm',
'cloud_type': None}],
'weather': ['Clear Sky'],
'auto': False}
```
Enjoy it!
Raw data
{
"_id": null,
"home_page": "https://github.com/Clarmy/pymetaf",
"name": "pymetaf",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "Wentao Li",
"author_email": "wentao.li@moji.com",
"download_url": "https://files.pythonhosted.org/packages/be/ee/18205f9199427eefac1f8c56879af090313121a514e48e295b7a0ce16313/pymetaf-1.0.3.tar.gz",
"platform": null,
"description": "# pymetaf\n\n[![Python package](https://github.com/cnmetlab/pymetaf/actions/workflows/python-package.yml/badge.svg)](https://github.com/cnmetlab/pymetaf/actions/workflows/python-package.yml)\n[![PyPI version](https://badge.fury.io/py/pymetaf.svg)](https://badge.fury.io/py/pymetaf)\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/Clarmy/pymetaf/issues)\n\nThis is a python package to parse raw METAR and TAF report text.\n\n## Installation\n\n1. Clone this repository and run `$ python setup.py install` in your terminal.\n2. Use Pip `$ pip install pymetaf`\n\n## Usage\n\n```python\n>>> from pymetaf import parse_text\n\n>>> text = 'METAR ZYAS 250500Z 21009G14MPS 6000 NSC 18/08 Q1018 NOSIG'\n\n>>> parse_text(text, 2021, 5)\n{'kind': 'METAR',\n 'icao': 'ZYAS',\n 'datetime': '2021-05-25T05:00:00+00:00',\n 'wind_direction': 210,\n 'wind_direction_units': 'degree',\n 'wind_speed': 9,\n 'wind_speed_units': 'm/s',\n 'gust': 14,\n 'wind_direction_range': None,\n 'cavok': False,\n 'visibility': 6000,\n 'visibility_units': 'm',\n 'temperature': 18,\n 'dew_temperature': 8,\n 'temperature_units': 'degree C',\n 'qnh': 1018,\n 'qnh_units': 'hPa',\n 'cloud': [{'cloud_mask': 0,\n 'cloud_height': None,\n 'cloud_height_units': 'm',\n 'cloud_type': None}],\n 'weather': ['Clear Sky'],\n 'auto': False}\n```\n\nEnjoy it!\n",
"bugtrack_url": null,
"license": "",
"summary": "A python package for parsing metar & taf raw text",
"version": "1.0.3",
"project_urls": {
"Homepage": "https://github.com/Clarmy/pymetaf"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e223e8512356a99546cd8ef15b740dcbbe99b8400a431712496826076377a95e",
"md5": "2679b49224c70c05963583dd9ba4d771",
"sha256": "3cf01e732da1dd7d0b237022deb773a7e2600147e1e6f79cfabffe92a691e1e9"
},
"downloads": -1,
"filename": "pymetaf-1.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2679b49224c70c05963583dd9ba4d771",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 11217,
"upload_time": "2024-02-01T07:20:43",
"upload_time_iso_8601": "2024-02-01T07:20:43.872208Z",
"url": "https://files.pythonhosted.org/packages/e2/23/e8512356a99546cd8ef15b740dcbbe99b8400a431712496826076377a95e/pymetaf-1.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "beee18205f9199427eefac1f8c56879af090313121a514e48e295b7a0ce16313",
"md5": "9fa9d8f357083939c5562e94051461b4",
"sha256": "623ba0fc1aecdf296d7cbb335dab7d6d32d327cb1a0b4a5b0ee83f88780a90e7"
},
"downloads": -1,
"filename": "pymetaf-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "9fa9d8f357083939c5562e94051461b4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 9834,
"upload_time": "2024-02-01T07:20:45",
"upload_time_iso_8601": "2024-02-01T07:20:45.607462Z",
"url": "https://files.pythonhosted.org/packages/be/ee/18205f9199427eefac1f8c56879af090313121a514e48e295b7a0ce16313/pymetaf-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-01 07:20:45",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Clarmy",
"github_project": "pymetaf",
"travis_ci": true,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "pymetaf"
}