Commit Graph

263 Commits

Author SHA1 Message Date
Richard Belleville 951263b12f Remove reference to builing from source 2020-06-02 10:55:22 -07:00
Mark D. Roth d674fa3e37 Support xDS via both "xds" and "xds-experimental" URI schemes. 2020-06-01 14:39:37 -07:00
Richard Belleville f60226f140 Yapf 2020-05-21 13:20:51 -07:00
Richard Belleville 212d4468f0 Accidentally a sentence fragment 2020-05-21 12:55:16 -07:00
Richard Belleville 6bd8816c0a Add client 2020-05-21 12:52:04 -07:00
Lidi Zheng f6e6b9f640 Fix the pylint complain 2020-04-30 15:16:32 -07:00
Taras Galkovskyi f375c0b548 minor stylistic fixes 2020-04-30 18:58:44 +00:00
Taras Galkovskyi d62df731a0 pacify pylint on examples folder 2020-04-29 23:22:22 +00:00
Taras Galkovskyi 469631f549 run yapf; delete alts unit tests 2020-04-29 22:50:35 +00:00
Taras Galkovskyi 486e27e2de fix formatting issues 2020-04-29 19:43:45 +00:00
Taras Galkovskyi 42bd106898 updating comments to make clear that ALTS is only supported on GCP 2020-04-15 22:14:08 +00:00
Taras Galkovskyi 3ff24dd63a Merge branch 'master' of git://github.com/grpc/grpc 2020-04-15 18:18:51 +00:00
Taras Galkovskyi 02da3330c2 address review comments 2020-04-15 18:13:04 +00:00
Richard Belleville 0cdffa970c Buildifier 2020-04-13 10:25:56 -07:00
Richard Belleville c14fce7ab4 Typo 2020-04-10 19:35:01 -07:00
Richard Belleville e97cd37e68 Support running multiprocessing example without Bazel 2020-04-10 19:33:07 -07:00
Richard Belleville 96024a9ad3 Update documentation 2020-04-10 19:22:55 -07:00
Taras Galkovskyi 72cd29266d simplify ALTS client 2020-04-10 14:27:30 +00:00
Taras Galkovskyi 828ee320a4 Expose ALTS client/server credentials on Python layer 2020-04-07 00:14:41 +00:00
Richard Belleville f64e7af7cd Add requirements.txt 2020-03-25 10:35:45 -07:00
Richard Belleville 571a564f51 Add type annotations and comments 2020-03-24 14:23:25 -07:00
Richard Belleville 0c28a9beaf Specify the Python version 2020-03-24 14:11:17 -07:00
Richard Belleville 3fd0001481 Add Python xDS example server 2020-03-23 16:05:41 -07:00
Vijay Pai 717a29d096
Fix formatting 2020-03-02 13:01:30 -08:00
Vijay Pai b3bca043b2
Explain that this has Chinese comments with English translation 2020-03-02 10:22:12 -08:00
Yannic Bonenberger 06ecc87290 [bazel] Add fixes for --incompatible_load_proto_rules_from_bzl 2020-02-05 19:58:30 +01:00
Jan Tattermusch 27cdec0041 buildifier format 2020-01-15 04:43:59 -05:00
Richard Belleville 69f990673f Conform to protobuf's usage of six 2020-01-15 04:43:59 -05:00
Esun Kim 7be821ac47 Yapf all target python sources 2020-01-03 09:25:10 -08:00
Richard Belleville 135b94913f Yapf 2019-12-11 16:55:55 -08:00
Richard Belleville 13a4f1d7d3 Migrate data_migration example to dynamic stubs 2019-12-11 13:36:35 -08:00
Richard Belleville 6c0a11bdba Migrate metadata example to dynamic stubs 2019-12-11 13:32:28 -08:00
Richard Belleville 59563c5102 Migrate interceptor example to dynamic stubs 2019-12-11 13:28:20 -08:00
Richard Belleville e5e218381a And the rest of helloworld 2019-12-11 13:11:29 -08:00
Richard Belleville 4b3ad3f750 Migrate multiplexing example to dynamic stubs 2019-12-11 12:52:26 -08:00
Richard Belleville 7aeec822fe Migrate route guide to dynamic stubs 2019-12-11 12:32:50 -08:00
Richard Belleville d35b24bd60 Use dynamic stubs in helloworld example 2019-12-11 12:26:14 -08:00
Lidi Zheng c34bef4ca4 Format all Bazel files with buildifier 2019-11-05 14:03:52 -08:00
chentanjun 4ecc1fe6a4 fix the wrong word 2019-10-01 05:13:33 +08:00
kerbalwzy d06ccebb1e Fix: remove the space on the left of colons 2019-09-17 09:37:56 +08:00
kerbalwzy f3fdd259c1 Fix: fix the wrong word and delete line number description 2019-09-15 15:12:45 +08:00
Lidi Zheng 5931fde9c7
Merge pull request #19938 from kerbalwzy/master
Add a quick-start example for basic usages in Python
2019-09-13 10:42:14 -07:00
kerbalwzy c5d55ee64f
Fix: add copyright headers in `server.py` 2019-09-11 10:27:15 +08:00
kerbalwzy 5c0fd4b4e6
Fix: add copyright headers in `demo.proto` 2019-09-11 10:23:31 +08:00
kerbalwzy 1b47584cf4
Fix: add copyright headers in `client.py` 2019-09-11 10:20:23 +08:00
kerbalwzy 5abf2e5095
Fix: add a blank line before the subtitle 2019-09-11 09:53:14 +08:00
Richard Belleville 3d4f905775
Merge pull request #20141 from gnossen/python_strip_prefixes
Add strip_prefix to python protoc plugin and py_grpc_library
2019-09-06 11:55:58 -05:00
Richard Belleville d649880044 Add strip_prefix to python protoc plugin and py_grpc_library 2019-08-30 16:47:22 -07:00
kerbalwzy 1859799ee3 Fix: update README because code reformat by YAPF script 2019-08-30 08:55:01 +08:00
kerbalwzy 5c0fed241d Fix: reformat code with YAPF script, and check with PyLint 2019-08-30 08:44:20 +08:00
kerbalwzy 25a1caa9b0 Update: add proto3 document link, change chinese translation and comment of 'unary' 2019-08-30 08:30:07 +08:00
kerbalwzy deee1f0826 Update: add offical guide link 2019-08-30 08:24:38 +08:00
Richard Belleville 1444cd1dd3 Revert "Revert "Merge pull request #20097 from gnossen/dual_version_python_tests""
This reverts commit 24c562dbaa.
2019-08-29 10:51:36 -07:00
Richard Belleville 24c562dbaa Revert "Merge pull request #20097 from gnossen/dual_version_python_tests"
This reverts commit c9c847f334, reversing
changes made to 07ba4de392.
2019-08-29 10:47:44 -07:00
Richard Belleville 27990a5541 Explicitly add python versions to examples. 2019-08-27 17:47:52 -07:00
kerbalwzy d5810a155b Fix: rebuild README files 2019-08-27 11:14:36 +08:00
kerbalwzy 55f1899d78 Update:the max_workers argument use default, use 'server.wait_for_termination()' to keep process alive 2019-08-27 10:36:35 +08:00
kerbalwzy 151f596054 Fix: Cancel the modification of the package search path and Remove useless notes 2019-08-27 10:17:08 +08:00
kerbalwzy caf64469f0 Update: rename the folder 2019-08-27 10:08:29 +08:00
Richard Belleville ba04bafede And the examples directory 2019-08-21 14:39:54 -07:00
kerbalwzy 7beba8547e fix:Make the title appear properly 2019-08-16 12:08:27 +08:00
kerbalwzy 5ca7452c51 fix:Update the constant name. Replace abbreviations with complete forms of words 2019-08-16 11:57:35 +08:00
kerbalwzy d2a224252d fix:Update notes, with more standard words 2019-08-16 11:54:31 +08:00
kerbalwzy e3f5320ae2 remove LICENSE and notes file, Modify the identifier name, 2019-08-15 16:29:39 +08:00
kerbalwzy d33d30a595 update notes 2019-08-14 09:20:57 +08:00
kerbalwzy d1b64c3a3e add en example which easy start grpc by 4 kinds method of service with python 2019-08-14 00:25:48 +08:00
Richard Belleville d932d2368e
Merge pull request #19852 from gnossen/server_termination
Quit waiting for a day
2019-08-08 09:53:10 -07:00
Richard Belleville 3db8828876 Add TODOs for prefix stripping 2019-08-06 15:24:09 -07:00
Richard Belleville 79611aca51 Fix up unit test 2019-08-05 17:25:16 -07:00
Richard Belleville e32980fba2 Quit waiting for a day 2019-08-05 16:19:49 -07:00
Richard Belleville 66114201b4 Modernize cancellation example 2019-08-02 15:11:06 -07:00
Richard Belleville e1980a7a5a Merge remote-tracking branch 'origin/master' into py_proto_library 2019-08-02 15:02:31 -07:00
Richard Belleville 2b7ec3ad23 Fix up examples. 2019-08-01 16:18:45 -07:00
Richard Belleville 7b2c8c27b0 Separate py_grpc_library and py_proto_library.
By popular demand, we'll now be offering separate py_grpc_library and
py_proto_library targets sharing the same interface as within google3.
This change necessitated some modifications to how we pull in our own
Python-level dependencies and how we make those available to those
pulling in our project via Bazel.

There is now a grpc_python_deps() Bazel workspace rule that pulls in the
appropriate dependencies, which should be called from the client
project's WORKSPACE file. A test has been added to the bazel/test/
directory to verify that this behavior works as intended.

It's worth noting that the protobuf repository's usage of Starlark
bind() caused a great deal of trouble in ensuring that we could also
pull in six.

This change also required a change in the way generated proto code is
imported in the channelz and health-check modules, as well as in their
associated tests. We were importing them two different ways, each
relative. This resulted in two different module objects being imported
into the process, which were incompatible. I am not sure exactly what
caused this behavior to begin, as this should have been possible before
this PR. As a workaround, I am simply trying two different absolute
imports and using the one that works. This should function both inside
and outside of Bazel environments.
2019-08-01 15:16:22 -07:00
Richard Belleville 805afe647d Copyright typo 2019-07-08 11:42:21 -07:00
Richard Belleville 79e78d16f7 Pylint 2019-07-08 11:09:44 -07:00
Richard Belleville ba39c9255c Adopt reviewer's comments 2019-07-08 10:00:36 -07:00
Richard Belleville 61c2f0c379 Merge remote-tracking branch 'origin/master' into cancellation_example 2019-07-03 18:08:10 -07:00
Richard Belleville 915e97b115 Fix main thread starvation issues 2019-06-26 13:16:02 -07:00
Richard Belleville 1db141accc Change section title 2019-06-26 09:51:44 -07:00
Lidi Zheng ce41cde908 Fix string/bytes problem && lint 2019-06-26 09:46:05 -07:00
Richard Belleville 25f3439c91 Make whole package testonly 2019-06-26 09:45:47 -07:00
Richard Belleville 7486026eb9 Annotate the proto file 2019-06-26 09:42:55 -07:00
Richard Belleville 4100084c78 Use six for compatibility in client 2019-06-26 09:37:33 -07:00
Richard Belleville 7fa7f932e3 Pull search algorithm out into another module 2019-06-26 09:32:58 -07:00
Richard Belleville 42b2fe154a Simplify search implementation 2019-06-26 09:21:29 -07:00
Richard Belleville 2bf4d502c1 Factor out simpler generator 2019-06-26 09:06:07 -07:00
Richard Belleville fed1c629e0 Make compatible with Python 3 2019-06-25 16:07:49 -07:00
Richard Belleville 81f42031c6 Pylint 2019-06-25 15:58:06 -07:00
Richard Belleville edbddf25ab Typos 2019-06-25 15:49:31 -07:00
Richard Belleville 786a3acab0 Add test 2019-06-25 14:20:07 -07:00
Richard Belleville 93d6344ac6 Add todo 2019-06-25 13:25:54 -07:00
Richard Belleville dc8dba8afe Add docstrings 2019-06-25 13:19:02 -07:00
Richard Belleville 8f1bfdab55 Yapf 2019-06-25 13:01:22 -07:00
Richard Belleville b12299701d Clean up logging 2019-06-25 13:00:09 -07:00
Richard Belleville 4c852bf25f Cancel RPCs after a hash limit has been reached 2019-06-25 12:50:10 -07:00
Richard Belleville b9cc2c210f Explain how we take care of servicer threads 2019-06-25 11:15:43 -07:00
Richard Belleville cdae8ca6ad Add intro about algorithm 2019-06-25 11:11:03 -07:00
Richard Belleville 82aa4068c7 Elaborate on cancelling streaming RPCs 2019-06-25 11:02:10 -07:00
Richard Belleville 4ee154dd53 Elaborate on unary cancellation 2019-06-25 10:50:04 -07:00