File tree Expand file tree Collapse file tree 1 file changed +28
-5
lines changed
Expand file tree Collapse file tree 1 file changed +28
-5
lines changed Original file line number Diff line number Diff line change 44
55A python lib to communicate with Topogram
66
7+ ## How it works
78
89
9- ## How it works
10+ ``` python
11+ from topogram- python- client import TopogramAPIClient
12+
13+ topogram = TopogramAPIClient(" http://localhost:3000" )
14+
15+ # create a new network
16+ topogram.create_topogram(" test" )
17+ ```
18+
19+ ## Documentation
1020
1121Read the docs at [ http://topogram.readthedocs.io/ ] ( http://topogram.readthedocs.io/ )
1222
13- from topogram-python-client import TopogramAPIClient
1423
15- topogram = TopogramAPIClient("http://localhost:3000")
24+ ## Install
25+
26+ git clone https://github.com/topogram/topogram-api-client
27+ cd topogram-api-client
28+ python setup.py install
29+
30+ ## Example
31+
32+ ``` python
33+ from topogram- python- client import TopogramAPIClient
34+
35+ topogram = TopogramAPIClient(" http://localhost:3000" )
1636
17- # create a new network
18- topogram.create_topogram("test")
37+ # create a new network
38+ topogram.create_topogram(" My Topogram" )
39+ create_topogram(" Test" , my_nodes, my_edges)
40+ ```
41+ See a complete example in [ examples] ( ./examples ) folder
1942
2043## command-line
2144
You can’t perform that action at this time.
0 commit comments