patchtest2 is an effort to refactor the existing patchtest tool (part of the Yocto Project) to use modern Python idioms and reduce complexity. You can find out more about the tool here:
pip install patchtest2
patchtest2
is distributed under the terms of the MIT license.