Skip to content

Commit 3e72337

Browse files
committed
How to use for test
1 parent 9511da0 commit 3e72337

File tree

1 file changed

+8
-32
lines changed

1 file changed

+8
-32
lines changed

README.md

+8-32
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,10 @@
1-
# UNIT9 test
2-
3-
Test for encourage Unit9 people to hire me! (wink)
4-
5-
## Run the example with docker
1+
# Zookeeperize
62
```bash
7-
cd docker
8-
sh build.sh
9-
sh run.sh
10-
# After this, point your browser to http://localhost:5000/api
11-
```
12-
13-
## Run the application locally
14-
15-
### Create your virtualenv and run the source
16-
```bash
17-
python -m venv ~/.virtualenv/unit9
18-
. ~/virtualenv/unit9/bin/activate
19-
pip install -r requirements.txt
20-
. source.me
21-
python src/main.py
22-
# After this, point your browser to http://localhost:5000/api
23-
```
24-
25-
## Run the application by installing it
26-
27-
### Create your virtualenv and install the application
28-
```bash
29-
python -m venv ~/.virtualenv/unit9
30-
. ~/virtualenv/unit9/bin/activate
31-
python setup.py install
32-
unit9
33-
# After this, point your browser to http://localhost:5000/api
3+
python
4+
from modules.utils.zookeeper import zk_power
5+
z = zk_power(zookeeper_hosts=['192.168.100.10'])
6+
z.zk.start()
7+
z.set('/tmp', 'test')
8+
print(z.get('/tmp'))
9+
...
3410
```

0 commit comments

Comments
 (0)