thrift python demo
Make sure your python version is at version 2
# install dependenies
pip install -r requirements.txt
# run server.py
python2 server.py
# run client.py
python2 client.py
Thrift support many language, like java, python, javascript, go, php, ruby and etc. even it can generate the html code or xml code! Very powerful.
brew install thrift
thrift --gen py hi.thrift