You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,25 +7,25 @@
7
7
8
8
This project aims to be a base building block for [gNMI](https://github.com/openconfig/gnmi) projects written in Python.
9
9
10
-
The process of building pythonic libraries and applications using [gRPC](https://grpc.io/) and [Protocol Buffers](https://developers.google.com/protocol-buffers)
11
-
have been fragmented. This often means that a developer needs to copy over `proto` files, generate Python source from
12
-
these using `protoc` and use them in-tree for their project. There already exists several projects built in this fashion.
10
+
The process of building pythonic libraries and applications using [gRPC](https://grpc.io/) and [Protocol Buffers](https://developers.google.com/protocol-buffers)
11
+
have been fragmented. This often means that a developer needs to copy over `proto` files, generate Python source from
12
+
these using `protoc` and use them in-tree for their project. There already exists several projects built in this fashion.
13
13
While functional, these can be hard to reuse or maintain, often times resulting stale code and no versioning.
14
14
15
-
`gnmi-proto` builds on top of the improvement already done by [betterproto](https://pypi.org/project/betterproto/) and
16
-
in turn by the [grpclib](https://pypi.org/project/grpclib/) library. Here, we make available, as versioned packages,
15
+
`gnmi-proto` builds on top of the improvement already done by [betterproto](https://pypi.org/project/betterproto/) and
16
+
in turn by the [grpclib](https://pypi.org/project/grpclib/) library. Here, we make available, as versioned packages,
17
17
code generated from [gNMI protocol buffers](https://github.com/openconfig/gnmi/tree/master/proto).
18
18
19
-
The default implementation makes use of the [betterproto](https://pypi.org/project/betterproto/)`protoc` plugin to
20
-
generate clean modern code. In addition, this also provides a `gnmi.proto.legacy` module exposing code generated by
19
+
The default implementation makes use of the [betterproto](https://pypi.org/project/betterproto/)`protoc` plugin to
20
+
generate clean modern code. In addition, this also provides a `gnmi.proto.legacy` module exposing code generated by
21
21
`protoc` using the the in-built Python generator.
22
22
23
23
## Example Usage
24
24
### Client
25
25
The following code expects a server at `127.0.0.1:9339` with the [test configuration](https://github.com/python-gnxi/python-gnmi-proto/blob/master/tests/integration/fixtures/config.json). Refer to [gNMI Target Server](https://github.com/python-gnxi/python-gnmi-proto/blob/master/CONTRIBUTING.md#gnmi-target-server) section in [CONTRIBUTING.md](https://github.com/python-gnxi/python-gnmi-proto/blob/master/CONTRIBUTING.md) for information on how to set it up.
0 commit comments