How to create a gRPC server in Python using proto3?
<p>According to this <a href="http://www.grpc.io/docs/tutorials/basic/python.html#creating-the-server" rel="nofollow">http://www.grpc.io/docs/tutorials/basic/python.html#creating-the-server</a> and the examples here <a href="https://github.com/grpc/grpc/tree/v1.0.0/examples/python/route_guide" rel="nofollow">https://github.com/grpc/grpc/tree/v1.0.0/examples/python/route_guide</a>, when I generate my <code>_pb2.py</code> file, several classes named <code>*Stub</code> and <code>*Servicer</code> should be created. However, my generated <code>_pb2.py</code> file doesn't contain anything like this.</p>

<p>This is how I generate my <code>_pb2.py</code> file:</p>

<pre><code>protoc --proto_path=.venv/lib/python3.5/site-packages/grpc/tools/_proto/ --proto_path=.  --python_out=voyager/ voyager.proto
</code></pre>

<p>Is there something special about proto3 that means that these classes aren't generated? Or a <code>protoc</code> flag that I'm missing? I can't seem to figure out how to create a gRPC server.</p>