GitXplorerGitXplorer
w

thrift_usage

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
06ff9593bd55f9767f40d3a6158b1880d573156a

update

wwac81 committed 7 years ago
Unverified
d41c7a3d282bf1f8bd07f2cb71e20987575466ba

update

wwac81 committed 7 years ago
Unverified
6702b80ae146989a32ca8e345bcbcf238365a5c0

update

wwac81 committed 7 years ago
Unverified
d8d4e6cb015fe8aa2a6e8148788525bd4a7a7f9b

update

wwac81 committed 7 years ago
Unverified
284cdc2897eadc64a9dd4c9d938d089238a64557

update

wwac81 committed 7 years ago
Unverified
441c39087eb9c3d11e34b205292104a17db5956a

update

wwac81 committed 7 years ago

README

The README file for this repository.

thrift usage in python 2.7

i fixed some issue and base on:

http://tkang.blogspot.com/2010/07/thrift-server-client-in-python.html

1.you install thirft at first:

use pip install thirft or http://thrift-tutorial.readthedocs.io/en/latest/installation.html

2.you can generate gen-py by yourself use below:

thrift --gen py helloworld.thrift

you can use helloworld.thrift below

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)
}

3.then you can start server and client like that:

python helloserver.py
python helloclient.py

4.you can know about JAVA example here:

http://thrift-tutorial.readthedocs.io/en/latest/usage-example.html#java-multiplication-server