{"id":24031,"library":"metar-taf-parser-mivek","title":"METAR TAF Parser (mivek)","description":"A Python library for parsing METAR and TAF aviation weather messages. Version 1.11.0 supports runway visual range units and operates on Python >=3.9. The library parses raw METAR/TAF strings into structured model objects with weather phenomena, clouds, wind, visibility, etc. Released on PyPI as metar-taf-parser-mivek, with a development cadence of approximately 2-3 releases per year.","status":"active","version":"1.11.0","language":"python","source_language":"en","source_url":"https://github.com/mivek/python-metar-taf-parser","tags":["metar","taf","aviation","weather","parser"],"install":[{"cmd":"pip install metar-taf-parser-mivek","lang":"bash","label":"PyPI install"}],"dependencies":[],"imports":[{"wrong":"from metar_taf_parser.parser.metar import MetarParser","symbol":"MetarParser","correct":"from metar_taf_parser import MetarParser"}],"quickstart":{"code":"from metar_taf_parser.parser.metar import MetarParser\n\nraw = \"LFPG 251300Z AUTO 23012KT 9999 -RA SCT025 BKN035 12/10 Q1015 NOSIG\"\nparser = MetarParser()\ntry:\n    metar = parser.parse(raw)\n    print(metar.wind.speed, metar.wind.direction)\n    # 12 230\nexcept Exception as e:\n    print(f\"Parse error: {e}\")","lang":"python","description":"Parse a METAR string and access wind data."},"warnings":[{"fix":"Wrap parser.parse() in try/except Exception.","message":"The parser raises ValueError or ParseException on malformed input; always wrap in try/except.","severity":"gotcha","affected_versions":"all"},{"fix":"Check metar.wind.direction is not None or use metar.wind.unit. For variable wind, direction returns 0 with variable flag.","message":"Wind direction is 0 when variable or calm; do not assume 0 means north.","severity":"gotcha","affected_versions":"all"},{"fix":"Always confirm unit property (e.g., metar.visibility.unit) before interpreting values.","message":"Cloud height is in feet; visibility may be in meters or statute miles, check unit field.","severity":"gotcha","affected_versions":"all"},{"fix":"Use explicit submodule imports (e.g., from metar_taf_parser.parser.metar import MetarParser).","message":"In v1.8.0, the top-level __init__.py exports were reduced; importing from 'metar_taf_parser' directly may break in future versions.","severity":"deprecated","affected_versions":">=1.8.0"}],"env_vars":null,"search_vec":"'-3':61 '1.11.0':17 '2':60 '3.9':27 'approxim':59 'aviat':13,67 'cadenc':57 'cloud':41 'develop':56 'etc':44 'librari':7,29 'messag':15 'metar':1,10,50,65 'metar-taf-parser-mivek':49 'metar/taf':32 'mivek':4,53 'model':36 'object':37 'oper':24 'pars':9,30 'parser':3,52,69 'per':63 'phenomena':40 'pypi':47 'python':6,26 'rang':21 'raw':31 'releas':45,62 'runway':19 'string':33 'structur':35 'support':18 'taf':2,12,51,66 'unit':22 'version':16 'visibl':43 'visual':20 'weather':14,39,68 'wind':42 'year':64","created_at":"2026-05-01T08:10:55.342531+00:00","updated_at":"2026-05-01T08:10:55.342531+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'MetarParser' from 'metar_taf_parser' (/tmp/tmp0x94hjrf/venv/lib/python3.12/site-packages/metar_taf_parser/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.13.1","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/mivek/python-metar-taf-parser","docs":null,"changelog":null,"pypi":"https://pypi.org/project/metar-taf-parser-mivek/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}