Skip to content

Commit

Permalink
.py file move to python/demos (#92)
Browse files Browse the repository at this point in the history
.pyのファイルをpython/demosに移動します。
  • Loading branch information
sotomaru-pfr committed Aug 8, 2023
1 parent dd6af0a commit 45b43bf
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 28 deletions.
17 changes: 17 additions & 0 deletions python/demos/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# PythonでgRPC APIを実行するサンプル

## ビルド
```
git clone https://github.com/pf-robotics/kachaka-api.git # 本リポジトリ
python3 -m venv venv
source venv/bin/activate
cd kachaka-api/python/demos
pip install -r requirements.txt
python -m grpc_tools.protoc -I../../protos --python_out=. --pyi_out=. --grpc_python_out=. ../../protos/kachaka-api.proto
```

## 実行
```
python <サンプルコード>.py <カチャカのIPアドレス>:26400
```
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,12 @@

```
git clone https://github.com/pf-robotics/kachaka-api.git # 本リポジトリ
cd kachaka-api
python3 -m venv venv
source venv/bin/activate
cd kachaka-api/python/demos
pip install -r requirements.txt
cd grpc_client
python -m grpc_tools.protoc -I../protos --python_out=. --pyi_out=. --grpc_python_out=. ../protos/kachaka-api.proto
python -m grpc_tools.protoc -I../../protos --python_out=. --pyi_out=. --grpc_python_out=. ../../protos/kachaka-api.proto
wget https://beebotte.com/certs/mqtt.beebotte.com.pem
```
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions python/grpc_client/.gitignore

This file was deleted.

19 changes: 0 additions & 19 deletions python/grpc_client/README.md

This file was deleted.

0 comments on commit 45b43bf

Please sign in to comment.