How to have separate url for jsonrpc using jsonrpclib

36 views
Skip to first unread message

Ankur Arora

unread,
Dec 17, 2016, 1:37:17 PM12/17/16
to JSONRPClib (Python)

I have three different classes with functions (written in python). I want to expose all these functions via jsonrpclib or jsonrpclib-pelix. So as i have to register all these functions. problem is some of these functions have same name.

class MyClass:
    def fun(self):
        return 'hello world'
class OtherClass:
    def fun(self):
        return 'hello world'

so is it possible that via one jsonrpc server I have differnt urls to register function fun

http://localhost:8080/MyClass/
http://localhost:8080/OtherClass/

I have also asked it here http://stackoverflow.com/questions/41201616/how-to-have-separate-url-for-jsonrpc-using-jsonrpclib-or-jsonrpclib-pelix
Reply all
Reply to author
Forward
0 new messages