grpc/examples/python/helloworld
Xuan Wang c910004328 [Python Stub] Add version check to stubs generated by grpcio_tools (#35906)
The stubs generated by grpcio_tools should always be used with [the same or higher version of grpcio](https://github.com/grpc/grpc/blob/master/tools/distrib/python/grpcio_tools/setup.py#L313), this change will add a run time check for this requirement inside the generated stubs and therefor enforce this requirement.

Please note for now we're just printing a warning for incorrect usage, we'll **change it to an error** soon.

Example warning message:
```
/usr/local/google/home/xuanwn/workspace/misc/grpc/examples/python/helloworld/helloworld_pb2_grpc.py:21: RuntimeWarning: The grpc package installed is at version 1.60.1, but the generated code in helloworld_pb2_grpc.py depends on grpcio>=1.63.0.dev0. Please upgrade your grpc module to grpcio>=1.63.0.dev0 or downgrade your generated code using grpcio-tools<=1.60.1. This warning will become an error in 1.64.0, scheduled for release on May 14,2024.
```
<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #35906

PiperOrigin-RevId: 615659471
2024-03-13 22:47:01 -07:00
..
.gitignore move examples to correct locations 2015-08-27 14:00:20 -07:00
README.md Docs: fix links to quick start pages 2020-06-16 08:40:59 -04:00
async_greeter_client.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
async_greeter_client_with_options.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
async_greeter_server.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
async_greeter_server_with_graceful_shutdown.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
async_greeter_server_with_reflection.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
greeter_client.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
greeter_client_reflection.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
greeter_client_with_options.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
greeter_server.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
greeter_server_with_reflection.py [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
helloworld_pb2.py [Python Stub] Add version check to stubs generated by grpcio_tools (#35906) 2024-03-13 22:47:01 -07:00
helloworld_pb2.pyi [Python O11Y] Reapply registered method change (#35850) 2024-02-15 15:36:27 -08:00
helloworld_pb2_grpc.py [Python Stub] Add version check to stubs generated by grpcio_tools (#35906) 2024-03-13 22:47:01 -07:00