Metar.py is a simple python library that simplifies downloading METAR data from NOAA's Aviation Weather Center. METAR's are partially decoded and presented as python dictionaries allowing for easy use in other aplications.
Clone repository and run in metar-py
directory.
python -m pip install .
Import and create Metar()
object.
from metar.metar import Metar
m = Metar()
r = m.get_metar('ICAO') # ICAO airport code, eg. EPKK
print(r)
Test only require python's default test unittest
package. Run with following command
python -m unittest tests/tests.py