Hi,

I'm trying out Thrift 0.5.0 to communicate between python and a backend Java server.

Everything is running just fine, but I'm not completely sure how to use the ./thriftfilename-remote python script generated by thrift. It seems like it is a handy utility for testing services using a bash script.

Here is what I'm doing

./mythriftproject-remote -h localhost:9091 Log []

this returns:

0

which is exactly what is expected, however I am unsure of how to pass an actual object on the command line.

The sample model I am using is

struct LogEvent {
    1: string Event
    2: string Message
}

service Log {
    int32 Log(1: list<LogEvent> logs)
}

Thanks
Mohit

Reply via email to