Carlos-Descalzi / pyremote

A very rustic way to do remoting object invocation call via HTTP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyremote

A very rustic way to do remoting object invocation call via HTTP.

Sample of use

# Server side
from pyremote import ObjectServer
class TestObject:

    def do_something(self, param):
        return f'Hola!!!{param}'

server = ObjectServer()
server.add_object(TestObject(),'test_object')
server.run()


# Client side
from pyremote import ObjectClient
test_object = ObjectClient('http://localhost:8080/test_object')
print(test_object.do_something('XXXX'))

About

A very rustic way to do remoting object invocation call via HTTP.


Languages

Language:Python 100.0%