Xiao
ad3f591af3
[Aio] Fix typo in async graceful shutdown example ( #29521 )
...
Background: https://github.com/grpc/grpc/pull/26622
3 years ago
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
3 years ago
Lidi Zheng
933b10d2a8
Add a correct graceful shutdwon example for the asyncio API ( #26622 )
3 years ago
Sergii Tkachenko
8db79e2e71
Python style: reformat code using updated yapf 0.30.0
4 years ago
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
4 years ago
Tim Hughes
80799468bd
lint
4 years ago
Tim Hughes
0b3fc20b83
clean up docstrings and remove unused imports
4 years ago
Tim Hughes
7aff6c4555
dont need ThreadPoolExecutor in asyncio
4 years ago
Tim Hughes
cef8dbf27c
Adds python aio helloworld examples
4 years ago
Richard Belleville
a362c2566d
Revert examples
4 years ago
Richard Belleville
dc9e20665e
Copy proto files instead of adding to sys.path
4 years ago
Richard Belleville
999bbf1401
Format
4 years ago
Patrice Chalin
4c4933e056
Docs: fix links to quick start pages
5 years ago
Esun Kim
7be821ac47
Yapf all target python sources
5 years ago
Richard Belleville
135b94913f
Yapf
5 years ago
Richard Belleville
e5e218381a
And the rest of helloworld
5 years ago
Richard Belleville
d35b24bd60
Use dynamic stubs in helloworld example
5 years ago
Richard Belleville
e32980fba2
Quit waiting for a day
5 years ago
Lidi Zheng
1e62124cfb
Revert changes to helloworld example
5 years ago
Lidi Zheng
518b55a433
Simplify implementation
5 years ago
Lidi Zheng
05b61a5199
Use Pylint to lint gRPC Python examples
6 years ago
Lidi Zheng
5fc0547a94
Add basicConfig to prepare to log future exception
6 years ago
Youngchan Kim
2e2ef9dcdf
Run YAPF check for python example
6 years ago
Youngchan Kim
832460bb94
Add link - gRPC Python package documents
6 years ago
Youngchan Kim
0f9733eb85
Update timeout: 1 -> 10
6 years ago
Youngchan Kim
c4c112bc50
Update keepalive timeout: 10 -> 10000
6 years ago
Youngchan Kim
f65615d4cd
Update example description
6 years ago
Youngchan Kim
0a925095be
Simplify example
6 years ago
Youngchan Kim
cf09d16ca8
Add python example - channel options
6 years ago
Mehrdad Afshari
5ffb9bf8c4
Add server reflection guide for Python
6 years ago
Nathaniel Manista
8234d14113
Close channels in examples
7 years ago
ncteisen
848a749f7a
yapf examples/python
7 years ago
Nathaniel Manista
61efbcd27a
Regenerate example Python generated code
7 years ago
Mehrdad Afshari
bb3d95b643
Use https://grpc.io consistently as the canonical URL
8 years ago
Jan Tattermusch
7897ae9308
auto-fix most of licenses
8 years ago
Nathaniel Manista
c15ee83882
Update Python examples with fresh generated code
8 years ago
Mark Mandel
9929e6c85c
Remove `run_codegen.py` from python helloworld example
...
Since we no longer reference `run_codegen.py` in the Quick Start for
Python, remove it from the repository to avoid confusion.
8 years ago
Nathaniel Manista
6c09b3b29e
Truncate Python example READMEs to grpc.io links
8 years ago
Nathaniel Manista
46585e23f1
Update examples to GA API
9 years ago
Ken Payson
5c88bc660c
Updated example codegen to use grpcio-tools
9 years ago
yang-g
b0de7163ad
Add proto comments to generated _pb2.py files
9 years ago
Craig Tiller
6169d5f7b0
Update copyrights
9 years ago
Leifur Halldor Asgeirsson
4df39871d0
python3-compatible syntax for python examples
9 years ago
Masood Malekghassemi
13e9faa644
Remove outdated scripts
9 years ago
Craig Tiller
cb6ce54e31
Update copyrights
9 years ago
Craig Tiller
897e4fe2ad
Update copyrights
9 years ago
Masood Malekghassemi
77ebadc662
Add grace=0 to server stop in Python example
...
Fixes #4122
9 years ago
Nathaniel Manista
4e7ea93614
"gRPC in 3 minutes" for Python
9 years ago
Nathaniel Manista
29e17020f5
Mark Python example docs as moved to grpc.io
9 years ago
Nathaniel Manista
061d288f55
Beta Python documentation correction and update
9 years ago