File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 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+ ```
You can’t perform that action at this time.
0 commit comments