http://tkang.blogspot.com/2010/07/thrift-server-client-in-python.html
use pip install thirft or http://thrift-tutorial.readthedocs.io/en/latest/installation.html
thrift --gen py helloworld.thrift
const string HELLO_IN_KOREAN = "an-nyoung-ha-se-yo"
const string HELLO_IN_FRENCH = "bonjour!"
const string HELLO_IN_JAPANESE = "konichiwa!"
service HelloWorld {
void ping(),
string sayHello(),
string sayMsg(1:string msg)
}
python helloserver.py
python helloclient.py
http://thrift-tutorial.readthedocs.io/en/latest/usage-example.html#java-multiplication-server