Installation#

wmoutils is available on PyPI, and can be installed using pip:

pip install wmoutils

If you are so inclined, you can also install wmoutils from source, via a local clone of the relevant Github repository:

git clone https://github.com/MeteoSwiss/wmoutils.git
cd wmoutils
pip install -e .

Please refer to the code contributing guidelines for more details, inclduing on how to set up a suitable development environment for wmoutils (should you be interested to contribute).

Logging#

wmoutils comes with a built-in logging setup relying on a NullHandler to avoid bothering users with unwanted messages. Should you wish to see/record the log messages (e.g. for debugging purposes), you can do so by setting up your own handler, e.g. via:

import logging

logging.basicConfig(level=logging.INFO)
logging.getLogger('wmoutils').setLevel(logging.DEBUG)

# ... your code using wmoutils here ...