Richard Belleville
468768865b
Make Buildifier Sanity Test Strict ( #27807 )
...
* Fix all lint errors in repo.
* Use strict buildifier by default
* Whoops. That file does not exist
* Attempt fix to buildifier invocation
* Add missing copyright
2021-11-03 14:57:04 -07:00
Richard Belleville
ffc43e05d8
Switch Python xDS Example Server to Listen on IPV4 Only ( #27679 ) ( #27758 )
...
* Switch to IPV4
* Update to all hosts
2021-10-18 09:36:08 -07:00
Craig Tiller
d1e01ac139
Add a test for a (now-illegal) build file construct ( #27602 )
...
* Add a test for a (now-illegal) build file construct
* add to test suite!
* fix
* fix
* fix syntax
2021-10-06 07:43:59 -07:00
小么小儿郎EL
435d5207ab
fix: use == instead of is when comparing with a certain types of literals ( #26519 )
2021-09-21 15:36:26 -07:00
Richard Belleville
a48067c4c8
Replace StopIteration with return ( #26861 )
2021-08-03 11:08:31 -07:00
Lidi Zheng
6c6463e1cd
Add retry example for gRPC Python ( #26829 )
...
* Add retry example for gRPC Python
* Make sanity test happy && simplfy proto definition
* Fix a grammer issue
2021-07-29 17:31:05 -07:00
Lidi Zheng
2231c2ba77
Introduce Python import sorting to our sanity test suite ( #26768 )
...
* Add isort_code.sh to sanity tests
* Run tools/distrib/isort_code.sh
* Fine tune the import order for relative imports
* Make pylint and project generation happy
* Fix a few corner cases
* Use --check instead of --diff
* The import order impacts test result somehow
* Make isort print diff and check output at the same time
* Let tools/run_tests/python_utils be firstparty library
* Run isort against latest HEAD
2021-07-26 12:31:21 -07:00
Lidi Zheng
933b10d2a8
Add a correct graceful shutdwon example for the asyncio API ( #26622 )
2021-07-08 10:58:58 -07:00
Richard Belleville
7125bbe5a5
Add Python PSM security example ( #26170 )
...
* Add Python PSM security example
* Fix lint
* Add in maintenance port configuration
* Align CLI flags with Java
* Pylint
2021-05-05 15:57:38 -07:00
Yash Tibrewal
f4e55b85bc
Replace disrespectful term
2021-02-08 15:29:53 -08:00
Sergii Tkachenko
8db79e2e71
Python style: reformat code using updated yapf 0.30.0
2021-01-13 14:00:12 -05:00
Lidi Zheng
e6dffc6fbe
Adding three more AsyncIO examples
...
* Channelz or Debug
* Route guide
* Wait for ready
2021-01-06 10:52:39 -08:00
Esun Kim
e0ebe46ad3
Fix python examples
2020-12-23 09:23:32 -08:00
Esun Kim
e7afadc255
Refactor examples BUILD files
2020-12-23 09:23:32 -08:00
Lidi Zheng
c515666a73
Merge pull request #24668 from lidizheng/example-async-bidi
...
Add async bidi-streaming example
2020-12-21 15:15:16 -08:00
Lidi Zheng
f2d06b8458
Add async bidi-streaming example
2020-12-21 14:38:39 -08:00
Lidi Zheng
40a5a655af
Polish and add AsyncIO examples
...
* Add type annotations
* Add test for asyncio auth example
* Use dynamic stubs to allow same code runs manually and under Bazel
* Add grpcio-tools as a Bazel dependency
* asyncio.run is not yet existed in 3.6
* Improve readability
2020-12-08 13:44:43 -08:00
Richard Belleville
14d6850f5a
And remove it too
2020-10-19 13:09:07 -07:00
Richard Belleville
3dad0eb862
Oops
2020-10-19 13:07:52 -07:00
Richard Belleville
897f97212a
Add -x to shell script
2020-10-19 10:51:42 -07:00
Richard Belleville
7821040586
Modernize run_codegen script
2020-10-16 13:58:16 -07:00
Tim Hughes
80799468bd
lint
2020-10-05 21:56:48 +01:00
Tim Hughes
0b3fc20b83
clean up docstrings and remove unused imports
2020-10-05 21:30:57 +01:00
Tim Hughes
7aff6c4555
dont need ThreadPoolExecutor in asyncio
2020-10-04 21:51:05 +01:00
Tim Hughes
cef8dbf27c
Adds python aio helloworld examples
2020-10-01 00:05:11 +01:00
Richard Belleville
e56fa264b6
Period
2020-08-17 11:37:21 -07:00
Richard Belleville
578c24a5e4
Spruce up no_codegen example
2020-08-17 11:03:32 -07:00
Richard Belleville
a362c2566d
Revert examples
2020-08-14 19:21:04 -07:00
Richard Belleville
c128e61cf4
Format examples
2020-08-14 19:08:44 -07:00
Richard Belleville
b2bc02d5a4
Add pregenerated example
2020-08-14 17:01:52 -07:00
Richard Belleville
8917e6d2a0
Pylint
2020-08-14 16:53:47 -07:00
Richard Belleville
828edcc67a
Use bazel imports instead of sys.path
2020-08-14 16:15:01 -07:00
Richard Belleville
38454eae37
Fix bazel example tests
2020-08-13 16:53:34 -07:00
Richard Belleville
dc9e20665e
Copy proto files instead of adding to sys.path
2020-08-13 16:13:17 -07:00
Richard Belleville
c6b6a73558
Fix route guide example
2020-08-11 11:44:47 -07:00
Richard Belleville
05aaf3d939
Pylint
2020-08-06 17:43:41 -07:00
Richard Belleville
568dd00774
Buildifier
2020-08-06 13:33:31 -07:00
Richard Belleville
24a66903a9
Yapf
2020-08-06 12:25:42 -07:00
Richard Belleville
c2c5057e9d
Fix up examples
2020-07-17 15:55:39 -07:00
Richard Belleville
999bbf1401
Format
2020-07-15 13:09:53 -07:00
Richard Belleville
1b2e7fa318
Merge remote-tracking branch 'origin/master' into dynamic_stubs
2020-07-10 14:07:01 -07:00
Richard Belleville
1f53f13446
Merge remote-tracking branch 'origin/master' into dynamic_stubs
2020-06-17 14:47:07 -07:00
Patrice Chalin
5ac3aa789f
Docs: fix links to grpc.io tutorial pages
2020-06-16 08:47:24 -04:00
Patrice Chalin
4c4933e056
Docs: fix links to quick start pages
2020-06-16 08:40:59 -04:00
Richard Belleville
661791c2a2
Restructure README
2020-06-03 11:05:58 -07:00
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