Insight Python Protobuf
Project description
Language Independent Interface Types For INSIGHT
The proto files can be consumed as GIT submodules or copied and built directly in the consumer project.
The compiled files are published to central repositories (Maven, ...).
Prerequisites
Python
pip install grpcio grpcio-tools mypy-protobuf
Go
# protoc (protobuf compiler)
# Ubuntu/Debian:
sudo apt install -y protobuf-compiler
# macOS:
brew install protobuf
# Go protobuf plugins
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go install github.com/srikrsna/protoc-gen-gotag@latest
Ensure $GOPATH/bin (usually ~/go/bin) is on your PATH.
Generate gRPC Client Libraries
To generate the raw gRPC client libraries, use make gen-${LANGUAGE}. Currently supported languages are:
- python
- golang
Using local build
When testing you can build the python version locally using make build-python. This will build a version of 0.0.1-dev,
this can then be installed using pip install.
make build-python VERSION=0.0.2
Then update the agent pyproject.yaml
dependencies = [
"insight-proto @ file:///home/bdonnell/repo/github/opentrace/insight-proto/build/python",
]
Then run pip install for the agent:
pip install -e".[dev]"
Due to this being a dev build sometimes pip gets confused so you might need to run uninstall.
pip uninstall insight-proto
Go
Build the Go protobuf locally and update the insight-proto-go submodule:
make build-go-local
Then in your Go service, add a replace directive in go.mod to point at your local copy:
replace github.com/opentrace/insight-proto-go => /home/bdonnell/repo/github/opentrace/insight-proto/insight-proto-go
Releasing
To release this we use GitHub Actions when a new release is tagged via GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file insight_proto-0.0.59.tar.gz.
File metadata
- Download URL: insight_proto-0.0.59.tar.gz
- Upload date:
- Size: 53.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09899adddc6bf22f0a94b169da1fbe2ad966405b2c05c9d072ad7c9bfd9acf99
|
|
| MD5 |
26eb12e58c3759fa5e9b56f6ce191fac
|
|
| BLAKE2b-256 |
ba7cfe39b7a47da869be730edae137c115515d2e37f096d084af6b4cf3e42599
|
File details
Details for the file insight_proto-0.0.59-py3-none-any.whl.
File metadata
- Download URL: insight_proto-0.0.59-py3-none-any.whl
- Upload date:
- Size: 76.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e622faf0dc94c76a4918e3b2302c509c9d8acae60f76a015fa20ac494fec0f62
|
|
| MD5 |
1df47fff030b8f1ebd404612a699e9f0
|
|
| BLAKE2b-256 |
81f976f6ee382585786cc66b2dfcd0d8d840bfada60cbcebff88a15065620006
|