{"library":"metar","title":"Metar - Python METAR report parser","description":"Metar is a Python package designed to parse METAR-coded weather reports, providing easy access to various meteorological data points such as wind, temperature, visibility, and cloud conditions. The project recently settled on the package name `metar` (previously `python-metar`). It is currently at version 2.0.1, with an active release cadence, and requires Python >=3.10.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install metar"],"cli":null},"imports":["from metar.Metar import Metar"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from metar.Metar import Metar\n\n# Example METAR string\nmetar_string = \"METAR KSLK 200853Z AUTO 09006KT 10SM CLR 02/M01 A2999 RMK AO2\"\n\n# Parse the METAR report\nm = Metar(metar_string)\n\n# Access parsed data\nprint(f\"Station: {m.station_id}\")\nprint(f\"Time: {m.time}\")\nprint(f\"Wind: {m.wind_dir}{m.wind_speed}KT\")\nprint(f\"Temperature: {m.temp}°C\")\nprint(f\"Dew Point: {m.dewpt}°C\")\nprint(f\"Visibility: {m.vis.value}{m.vis.units}\")\n\n# Print a formatted report\nprint(\"\\n--- Formatted Report ---\")\nprint(m.string())\n","lang":"python","description":"Parse a sample METAR string and access its attributes, then print a human-readable summary.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}