u2py(short form for ui to py) is a command line utility to convert ui files generated using qtdesigner or a text editor to py files which can then be imported in your PyQt project as modules.
$ pip install u2py
$ u2py config
$ u2py <inputfile> [options]
Try- Help to know about the options
$ u2py -h
$ u2py --help
$ pip uninstall u2py