>
> I actually found 1 possible solution, but after I install grpcio and 
> grpcio-tools the folder grpc._cython.cygrpc is still empty. So I suppose we 
> have a new way that is currently not shown in API reference?
>

import grpcfrom grpc._cython.cygrpc import CompressionAlgorithmfrom 
grpc._cython.cygrpc import CompressionLevel

ssl_creds = grpc.ssl_channel_credentials()
chan_ops = [('grpc.default_compression_algorithm', CompressionAlgorithm.gzip),
            ('grpc.grpc.default_compression_level', CompressionLevel.high)] 

chan = grpc.secure_channel("<srv_addr>:<srv_port>", ssl_creds, chan_ops) 

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/0c0bad89-25cd-4372-8eb1-f701bfdd71fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to