apstra-protobuf-101
sudo apt install protobuf-compiler
But the version may be lower than 3.19. In such case, get one from https://github.com/protocolbuffers/protobuf/releases
grpclab@u22-46:~/grpc$ protoc --version
libprotoc 26.1
grpclab@u22-46:~/grpc$
brew install protobuf
curl -LsSf https://astral.sh/uv/install.sh | sudo sh
git clone https://github.com/kimcharli/apstra-protobuf-101.git
cd apstra-protobuf-101
Platform > Streaming > Receivers (https://10.85.192.45/#/platform/streaming/receivers)
- Download messages description
- As plain text, place it under ./protos folder [proto]
scripts/protoc.sh
or
protoc -I=./protos --python_out=./src --pyi_out=./src ./protos/streaming-telemetry-schema.proto
scripts/re-venv.sh
or
uv venv
source .venv/bin/activate
uv pip install -r requirements.txt
cd apstra-protobuf-101
source .venv/bin/activate
python main.py 10.85.192.46 4446 event