Skip to content

Commit fbc9a6e

Browse files
author
Hinne Stolzenberg
committed
readme
1 parent aaa55f8 commit fbc9a6e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
### Python setup
2+
```
3+
$ python -m pip install virtualenv
4+
$ virtualenv venv
5+
$ source venv/bin/activate
6+
$ python -m pip install --upgrade pip
7+
```
8+
### grpc für Python
9+
```
10+
$ python -m pip install grpcio
11+
```
12+
### Stargate repo klonen
13+
```
14+
$ git clone [email protected]:mclgmbh/enthus-apis.git
15+
```
16+
### Stargate python interfaces etc. generieren:
17+
Diese Schritte müssen für jede neue Version von Stargate wiederholt werden,
18+
aber nur wenn die neue Version auch explizit genutzt werden soll. Stargate ist immer Rückwärtskopatibel,
19+
auch ohne Update.
20+
```
21+
$ cd enthus-apis
22+
$ buf generate
23+
```
24+
"stargate" und "buf" aus dem "gen" folder in das python-script-Verzeichnis kopieren
25+
evtl file anlegen in buf folder (python import fail)
26+
27+
```
28+
$ python grpc_example.py
29+
```

0 commit comments

Comments
 (0)