feat: use uv and protobuf

This commit is contained in:
2025-06-10 16:26:23 +08:00
parent 6a6622eff0
commit 884a575d7d
7 changed files with 1776 additions and 0 deletions

7
gen_client.sh Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
PROJECT_ROOT=$SCRIPT_DIR
APP_PROTO_DIR=$PROJECT_ROOT/components/app_proto/proto
OUTPUT_DIR=$SCRIPT_DIR/app/proto
uv run python -m grpc_tools.protoc --python_betterproto_out=$OUTPUT_DIR -I $APP_PROTO_DIR $APP_PROTO_DIR/hr_packet.proto