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
{{ message }}
This repository was archived by the owner on Jun 9, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/getting-started.md
+41-5Lines changed: 41 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,6 @@ You can also use it from `grpcio-tools`:
10
10
pip install grpcio-tools
11
11
```
12
12
13
-
14
13
## Install `betterproto2_compiler`
15
14
16
15
It is possible to install `betterproto2_compiler` using pip:
@@ -19,10 +18,6 @@ It is possible to install `betterproto2_compiler` using pip:
19
18
pip install betterproto2_compiler
20
19
```
21
20
22
-
!!! warning
23
-
The compiler needs Python 3.10, 3.11 or 3.12. Don't worry! The generated code will be compatible with all Python versions from Python 3.8 to Python 3.13.
24
-
25
-
26
21
## Compile a proto file
27
22
28
23
Create the following `example.proto` file.
@@ -35,6 +30,10 @@ package helloworld;
35
30
message HelloWorld {
36
31
string message = 1;
37
32
}
33
+
34
+
service HelloService {
35
+
rpc SayHello (HelloWorld) returns (HelloWorld);
36
+
}
38
37
```
39
38
40
39
You should now be able to compile it using:
@@ -50,3 +49,40 @@ If you installed `protoc` with `grpc-tools`, the command will be:
0 commit comments