I've seen different softwares using compiled programs as a "module"; an example would be wifite which uses the aircrack suite.

Similarly, I need to implement tshark inside my python program but without having to work my way through the source code (mainly because I'd want the software to be modular and to leave tshark as a simple dependency).

What's the best way to do so? I'd avoid a simple call to the program as I don't feel it is very pythonic.