|
|
3 bulan lalu | |
|---|---|---|
| .. | ||
| hth | 3 bulan lalu | |
| thermal | 3 bulan lalu | |
| README.md | 3 bulan lalu | |
| __init__.py | 3 bulan lalu | |
Do not edit these files by hand.
Regenerate from the repository proto:
# from host/
python3 tools/gen_python_stubs.py
or:
python3 -m grpc_tools.protoc \
-I ../../api/proto \
--python_out=hth_sdk/generated \
--grpc_python_out=hth_sdk/generated \
../../api/proto/hth/api/v1/hth.proto
Then rewrite from hth.api.v1 import ... to from hth_sdk.generated.hth.api.v1 import ...
(the generator script does this).
The SDK still imports and type-checks without stubs for builders and exceptions.
HthClient (real Unix-socket gRPC) requires generated stubs.