File tree Expand file tree Collapse file tree 3 files changed +4
-57
lines changed Expand file tree Collapse file tree 3 files changed +4
-57
lines changed Original file line number Diff line number Diff line change 1
- gRPC in 3 minutes (Python)
2
- ========================
3
-
4
- Background
5
- -------------
6
- For this sample, we've already generated the server and client stubs from
7
- [ helloworld.proto] [ ] and we'll be using a specific reference platform.
8
-
9
-
10
- Install gRPC:
11
- ``` sh
12
- $ pip install grpcio
13
- ```
14
- Or, to install it system wide:
15
- ``` sh
16
- $ sudo pip install grpcio
17
- ```
18
-
19
- If you're on Windows, make sure you installed the ` pip.exe ` component when you
20
- installed Python. Invoke as above but with ` pip.exe ` instead of ` pip ` (you may
21
- also need to invoke from a ` cmd.exe ` ran as administrator):
22
- ``` sh
23
- $ pip.exe install grpcio
24
- ```
25
-
26
- Download the example
27
- ``` sh
28
- $ # Clone the repository to get the example code:
29
- $ git clone https://github.com/grpc/grpc
30
- $ # Navigate to the "hello, world" Python example:
31
- $ cd grpc/examples/python/helloworld
32
- ```
33
-
34
- Try it!
35
- -------
36
-
37
- - Run the server
38
-
39
- ``` sh
40
- $ python2.7 greeter_server.py &
41
- ```
42
-
43
- - Run the client
44
-
45
- ``` sh
46
- $ python2.7 greeter_client.py
47
- ```
48
-
49
- Tutorial
50
- --------
51
-
52
- You can find a more detailed tutorial in [ gRPC Basics: Python] [ ]
53
-
54
- [ helloworld.proto ] :../protos/helloworld.proto
55
- [ Install gRPC Python ] :../../src/python#installation
56
- [ gRPC Basics: Python ] :http://www.grpc.io/docs/tutorials/basic/python.html
1
+ [ This code's documentation lives on the grpc.io site.] ( http://www.grpc.io/docs/quickstart/python.html )
Original file line number Diff line number Diff line change 1
- [ This code's documentation lives on the grpc.io site.] ( http://www.grpc.io/docs )
1
+ [ This code's documentation lives on the grpc.io site.] ( http://www.grpc.io/docs/quickstart/python.html )
Original file line number Diff line number Diff line change 1
1
An example showing two stubs sharing a channel and two servicers sharing a server.
2
+
3
+ More complete documentation lives at [ grpc.io] ( http://www.grpc.io/docs/tutorials/basic/python.html ) .
You can’t perform that action at this time.
0 commit comments