Skip to content

Commit 120e729

Browse files
committed
Update README
1 parent edb8667 commit 120e729

1 file changed

Lines changed: 26 additions & 8 deletions

File tree

README.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
MessagePack RPC implementation based on Tornado.
44

5+
## Installation
6+
7+
```sh
8+
% python setup.py install
9+
```
10+
11+
or
12+
13+
```sh
14+
% easy_install msgpack-rpc-python
15+
```
16+
17+
### Dependent modules
18+
19+
* msgpack-python (>= 0.1.12)
20+
* tornado (>= 2.1.1)
21+
522
## Example
623

724
### Server
@@ -27,18 +44,19 @@ client = msgpackrpc.Client(msgpackrpc.Address("localhost", 18800))
2744
result = client.call('sum', 1, 2) # = > 3
2845
```
2946

30-
## Installation
47+
## Run test
3148

32-
python setup.py install
33-
34-
or
49+
In test directory:
3550

36-
easy_install msgpack-rpc-python
51+
```sh
52+
% PYTHONPATH=../ python test_msgpackrpc.py
53+
```
3754

38-
## Dependent modules
55+
Run with timeout test(Timeout test takes about 5 seconds)
3956

40-
* msgpack-python (>= 0.1.12)
41-
* tornado (>= 2.1.1)
57+
```sh
58+
% PYTHONPATH=../ python test_msgpackrpc.py --timeout-test
59+
```
4260

4361
## Performance
4462

0 commit comments

Comments
 (0)