mimic
Intercept any app, then call it from Python like a library
...Generated clients are ordinary source files built on mimic.App, so developers can inspect and modify them directly. The system can preserve request templates and model multi-step API flows in which one call supplies data for another. Its command-line workflow checks prerequisites, records traffic, lists captured hosts, and prepares reusable sessions. The current documentation focuses on routing iPhone traffic through a Mac-hosted proxy. Mimic is intended for applications and accounts the user is authorized to inspect and automate.