I have a api made based on thrift TCompactProtocol.
Is there a quick way to convert it into TBinaryProtocolTransport? Is there a tool for conversion?
FYI. My api is Line Api bases api Python.
There is no tool needed. Since yyou did not elaborate on your actual use case too much, I can only give a generic answer.
In that case you need only to replace the transports on both ends and you're pretty much done.
You will need two pieces
Both cases are not really hard to implement technically.