Python server side implementation

9 views
Skip to first unread message

Ken Robertson

unread,
Oct 31, 2009, 2:44:40 PM10/31/09
to bert...@googlegroups.com
I really liked the simplicity of BERT-RPC and I'm looking at using it
over Thrift and some of the others, but I was looking to implement a
couple of services in Python. After finding Samuel's port of the core
BERT support, I set out implementing the service handler and got it
roughly working now. My Python is pretty rough, so I certainly would
appreciate anyone more versed in it to take a look and point out my
code smells.

I haven't yet implemented tests around the service executing
functions, but hope to find the time at some point this weekend.

http://github.com/krobertson/python-ernie

It depends on Samuel Stauffer's python-bert and python-erlastic:

http://github.com/samuel/python-bert
http://github.com/samuel/python-erlastic

To get it working, you'll need to fork Tom's main ernie repository:

http://github.com/mojombo/ernie

For it to execute python handlers, just need to edit asset_pool.erl
line 143 to have "python " instead of "ruby " (note the space). One
of my next tasks is to change the ernie executable to pass in which
script handler to call, or to have the handlers you pass in be
directly executable.

Please feel free to fork it and hack on it.

Thanks,
Ken

Reply all
Reply to author
Forward
0 new messages