| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
| |
Beta code elements are going to get deprecated and
Bazel support is much newer, so Bazel users are
not supposed to accidentally depend on beta code
elements. Preventing Bazel from building and
including beta code elements makes our tests pass
without depending on beta in grpcio target and
helps avoid including that dependency accidentally
if you are using Bazel.
|
|
|
|
|
| |
Follow-up on the additions in #15992. Pad the grpcio Python package
with necessary BUILD files along with 2 simple tests.
|
| |
|
|
|
|
|
| |
This is no longer needed with the addition of a close() API that allows
clean shutdown.
|
|
|
|
| |
Upgrade yapf version to 0.20.0 and reformat Python files.
|
| |
|
| |
|
|\
| |
| | |
More lint.
|
|\ \
| | |
| | | |
Lint progress.
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| | |
|
|\ \
| | |
| | | |
Lint fixes.
|
| |/ |
|
| | |
|
|/
|
|
|
| |
This should have been removed in, and has done anything but fail on
import since, 4d425522bffc9c616872d672bb58c993c3ac4c6a.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Make handlers optional at server construction
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
| |
This impacts the following APIs:
Metadata: Key is always a str, Value is bytes for binary metadata,
str otherwise
Call Details: str type
gRPC method: str type
hostname/target: str type
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Notable Changes:
-Convert all str types to byte types at cython layer (ascii encoding)
-Use six for packages that have different names in Python2/Python3
-By default, unit tests are compiled/run in Python2.7 and Python3.4
-Ensure MACOSX_BUILD_TARGET is at least 10.7
|
| |
|
| |
|
|
|
|
| |
"... will not have the effect of stopping the sooner later", heh. :-P
|
|\
| |
| | |
Allow directly specifiying connection path
|
| | |
|
|\ \
| | |
| | | |
ssl_channel_credentials to use None by default
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
On python3, in grpc._links.service._Kernel._on_service_acceptance_event,
there is a runtime TypeError:
```
_on_service_acceptance_event
group, method = service_acceptance.method.split('/')[1:3]
TypeError: 'str' does not support the buffer interface
```
It is fixed by using a bytes literal (`b'/'`) instead of a string literal.
This exposed another issue in grpc.beta._server where an exception was being
raised with a bytes literal for a message (a string should be used instead.)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Since the default behavior is quite sane, support just calling ssl_channel_credentials() without explicitly specifying ssl_channel_credentials(None, None, None).
This changes the pattern ssl_channel_credentials(server_crt, None, None) to ssl_channel_credentials(server_crt)
Signed-off-by: Christian Svensson <blue@cmd.nu>
|
| |/
| |
| |
| |
| |
| |
| |
| | |
Make insecure_channel / secure_channel accept port=None and only use the
'host' argument. This enables using UNIX sockets without mangling the
path of the socket.
Signed-off-by: Christian Svensson <blue@cmd.nu>
|
|/ |
|
| |
|
|
|
|
|
|
| |
Context management is implemented.
Stub deletion now cancels all RPCs immediately.
|
| |
|
|
|
|
|
|
| |
This defect was introduced in 9e4d0610ea5e2bb302c. I had thought that
this code was exercised in tests but it is bypassed by the use of
grpc_test.beta.test_utilities.not_really_secure_channel. :-(
|
|
|
|
|
|
|
|
|
|
| |
Servers and stubs were context managers in the Alpha API; they may not
need to be in the Beta API but it's easy enough to do, eases migration,
and probably helps some use cases.
For now the stub is given empty __enter__ and __exit__ methods; we can
always come back and implement the actual work of context management in
a later change.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(1) Renamed the "beta" module "implementations" because it hasn't been
monolithic since "interfaces" was factored out of it a few changes
back.
(2) Moved ChannelConnectivity from grpc.beta.beta to
grpc.beta.interfaces since it is constants that don't depend on the
beta implementation.
(3) Moved the Server interface definition from grpc.beta.beta to
grpc.beta.interfaces since it is an interface.
(4) Dropped the "create_" prefix from "create_<...>_channel" functions
to better match the other creation functions throughout the codebase.
|
| |
|
| |
|