Registry / data / metar-taf-parser-mivek

metar-taf-parser-mivek

JSON →
library1.13.1pypypiunverified

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.

pip install metar-taf-parser-mivek
INSTALL
IMPORT
SIG · METAR-TAF-PARSER-M
M
metar-taf-parser-mivek
datapythonv1.13.1
Install
1.8s avg
Import
Disk
19MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.13.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 21.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.8s · import 0.000s · 22MB
19MB installed
● package 19MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MetarParser
from metar_taf_parser import MetarParser
from metar_taf_parser.parser.metar import MetarParser

Parse a METAR string and access wind data.

from metar_taf_parser.parser.metar import MetarParser raw = "LFPG 251300Z AUTO 23012KT 9999 -RA SCT025 BKN035 12/10 Q1015 NOSIG" parser = MetarParser() try: metar = parser.parse(raw) print(metar.wind.speed, metar.wind.direction) # 12 230 except Exception as e: print(f"Parse error: {e}")
Debug
Known issues
gotchaThe parser raises ValueError or ParseException on malformed input; always wrap in try/except.
fix
Wrap parser.parse() in try/except Exception.
affects: all
gotchaWind direction is 0 when variable or calm; do not assume 0 means north.
fix
Check metar.wind.direction is not None or use metar.wind.unit. For variable wind, direction returns 0 with variable flag.
affects: all
gotchaCloud height is in feet; visibility may be in meters or statute miles, check unit field.
fix
Always confirm unit property (e.g., metar.visibility.unit) before interpreting values.
affects: all
deprecatedIn v1.8.0, the top-level __init__.py exports were reduced; importing from 'metar_taf_parser' directly may break in future versions.
fix
Use explicit submodule imports (e.g., from metar_taf_parser.parser.metar import MetarParser).
affects: >=1.8.0
Upgrade
Version history
1.13.1latest on PyPI · released May 31, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
metar-taf-parser-mivek — pip install metar-taf-parser-mivek · libregistry