Skip to content

wmttom/wormhole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wormhole

RPC base on zmq.

Installation

requires: libzmq,pyzmq
依赖模块libzmq,pyzmq $ pip install pyzmq

项目安装: $ python setup install

Getting Started

SERVER

from wormhole.server import Server
server = Server(10001)
server.test = lambda x:x*5
server.run()

CLIENT

from wormhole.client import Client
client = Client("127.0.0.1", 10001)
test_result,err = client.test("hello!")
if not err:
    print test_result
else:
    print err

更多例子见example.

About

RPC base on zmq.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages