Mockpy is a python open source line utility to quickly create mock servers on Mac OS X. Mockpy is inspired by wiremock and uses libmproxy for the proxy functionality.
Mockpy works by reading a list of configuration files in the YAML format, it uses these configurations to match the HTTP request received and return an http response based on the matched YAML file configuration.
https://github.com/oarrabi/mockpy
Mockpy is an open source tool to quickly create mock servers | Heykuki News