See the documentation here: https://pywrf.readthedocs.io/en/latest/index.html
Python package to work with WRF software in an easy way
Be sure to have permission to edit the following files:
$WRF_DIR/WPS/namelist.wps $WRF_DIR/WRFV3/test/em_real/namelist.input
Python packages to be installed in the system:
configparser
os
sys
datetime
contextlib
glob