dineshr93 / Apache-Thrift-with-python

This is demo working project with tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Writing Apache Thrift microservice with Python

Thrift explained clearly avoiding the division error

Steps

1 Download & rename exe as "thrift.exe" from https://thrift.apache.org/download
2 add to the Environpath
3 thrift files from https://thrift.apache.org/tutorial/py.html
4 do "thrift -r --gen py tutorial.thrift" it will create py-gen
4.1 do "thrift -r --gen java tutorial.thrift" it will create gen-java folder https://thrift.apache.org/tutorial/java.html

5 pip install thrift
6 do "py setup.py build" inside ->thrift-0.9.3/lib/py to get build folder. Then Copy lib folder into workspace  

Workspace in client

pygen
lib
client.py

Workspace in server

pygen
lib
server.py

Features

  • The division error in the tutorial is taken care of
  • This tutorial is mainly for Windows (but can be reproduced all above steps except 1 & 2)

License

MIT

Free Software, Hell Yeah!

About

This is demo working project with tutorial


Languages

Language:Python 53.5%Language:Thrift 46.1%Language:Makefile 0.4%