Classes | Functions | Variables
client Namespace Reference

Classes

class  CallMaker
 

Functions

def _calculate_primes (server_address)
 
def _initialize_worker (server_address)
 
def _run_worker_query (primality_candidate)
 
def _shutdown_worker ()
 
def bidirectional_streaming_method (stub)
 
def client_streaming_method (stub)
 
def main ()
 
def process (stub)
 
None process_call (ThreadPoolExecutor executor, grpc.Channel channel, str phone_number)
 
def run ()
 
def run (server_address, secure)
 
def run_client (channel_compression, call_compression, target)
 
def run_streaming_client (server_target, name, ideal_distance, interesting_distance)
 
def run_unary_client (server_target, name, ideal_distance)
 
def server_streaming_method (stub)
 
def simple_method (stub)
 

Variables

list __all__
 
dictionary _COMPRESSION_OPTIONS
 
string _DESCRIPTION = "A client for finding hashes similar to names."
 
 _LOGGER = logging.getLogger(__name__)
 
int _MAXIMUM_CANDIDATE = 10000
 
int _PROCESS_COUNT = 8
 
 _worker_channel_singleton = None
 
 _worker_stub_singleton = None
 
 action
 
 args = parser.parse_args()
 
int CLIENT_ID = 1
 
 default
 
 formatter = logging.Formatter('[PID %(process)d] %(message)s')
 
 handler = logging.StreamHandler(sys.stdout)
 
 help
 
 level
 
 parser = argparse.ArgumentParser(description=_DESCRIPTION)
 
string SERVER_ADDRESS = "localhost:23333"
 

Function Documentation

◆ _calculate_primes()

def client._calculate_primes (   server_address)
private

Definition at line 65 of file examples/python/multiprocessing/client.py.

◆ _initialize_worker()

def client._initialize_worker (   server_address)
private

Definition at line 49 of file examples/python/multiprocessing/client.py.

◆ _run_worker_query()

def client._run_worker_query (   primality_candidate)
private

Definition at line 59 of file examples/python/multiprocessing/client.py.

◆ _shutdown_worker()

def client._shutdown_worker ( )
private

Definition at line 43 of file examples/python/multiprocessing/client.py.

◆ bidirectional_streaming_method()

def client.bidirectional_streaming_method (   stub)

Definition at line 88 of file examples/python/data_transmission/client.py.

◆ client_streaming_method()

def client.client_streaming_method (   stub)

Definition at line 52 of file examples/python/data_transmission/client.py.

◆ main()

def client.main ( )

Definition at line 69 of file examples/python/cancellation/client.py.

◆ process()

def client.process (   stub)

Definition at line 30 of file examples/python/errors/client.py.

◆ process_call()

None client.process_call ( ThreadPoolExecutor  executor,
grpc.Channel  channel,
str  phone_number 
)

Definition at line 98 of file examples/python/async_streaming/client.py.

◆ run() [1/2]

def client.run ( )

Definition at line 109 of file examples/python/async_streaming/client.py.

◆ run() [2/2]

def client.run (   server_address,
  secure 
)

Definition at line 29 of file examples/python/xds/client.py.

◆ run_client()

def client.run_client (   channel_compression,
  call_compression,
  target 
)

Definition at line 38 of file examples/python/compression/client.py.

◆ run_streaming_client()

def client.run_streaming_client (   server_target,
  name,
  ideal_distance,
  interesting_distance 
)

Definition at line 50 of file examples/python/cancellation/client.py.

◆ run_unary_client()

def client.run_unary_client (   server_target,
  name,
  ideal_distance 
)

Definition at line 34 of file examples/python/cancellation/client.py.

◆ server_streaming_method()

def client.server_streaming_method (   stub)

Definition at line 73 of file examples/python/data_transmission/client.py.

◆ simple_method()

def client.simple_method (   stub)

Definition at line 39 of file examples/python/data_transmission/client.py.

Variable Documentation

◆ __all__

list client.__all__
private
Initial value:
1 = [
2  'simple_method', 'client_streaming_method', 'server_streaming_method',
3  'bidirectional_streaming_method'
4 ]

Definition at line 23 of file examples/python/data_transmission/client.py.

◆ _COMPRESSION_OPTIONS

dictionary client._COMPRESSION_OPTIONS
private
Initial value:
1 = {
2  "none": grpc.Compression.NoCompression,
3  "deflate": grpc.Compression.Deflate,
4  "gzip": grpc.Compression.Gzip,
5 }

Definition at line 29 of file examples/python/compression/client.py.

◆ _DESCRIPTION

string client._DESCRIPTION = "A client for finding hashes similar to names."
private

Definition at line 30 of file examples/python/cancellation/client.py.

◆ _LOGGER

client._LOGGER = logging.getLogger(__name__)
private

Definition at line 31 of file examples/python/cancellation/client.py.

◆ _MAXIMUM_CANDIDATE

int client._MAXIMUM_CANDIDATE = 10000
private

Definition at line 32 of file examples/python/multiprocessing/client.py.

◆ _PROCESS_COUNT

int client._PROCESS_COUNT = 8
private

Definition at line 31 of file examples/python/multiprocessing/client.py.

◆ _worker_channel_singleton

client._worker_channel_singleton = None
private

Definition at line 37 of file examples/python/multiprocessing/client.py.

◆ _worker_stub_singleton

client._worker_stub_singleton = None
private

Definition at line 38 of file examples/python/multiprocessing/client.py.

◆ action

client.action

Definition at line 49 of file examples/python/xds/client.py.

◆ args

client.args = parser.parse_args()

Definition at line 51 of file examples/python/xds/client.py.

◆ CLIENT_ID

int client.CLIENT_ID = 1

Definition at line 29 of file examples/python/data_transmission/client.py.

◆ default

client.default

Definition at line 45 of file examples/python/xds/client.py.

◆ formatter

client.formatter = logging.Formatter('[PID %(process)d] %(message)s')

Definition at line 88 of file examples/python/multiprocessing/client.py.

◆ handler

client.handler = logging.StreamHandler(sys.stdout)

Definition at line 87 of file examples/python/multiprocessing/client.py.

◆ help

client.help

Definition at line 46 of file examples/python/xds/client.py.

◆ level

client.level

Definition at line 118 of file examples/python/async_streaming/client.py.

◆ parser

client.parser = argparse.ArgumentParser(description=_DESCRIPTION)

Definition at line 43 of file examples/python/xds/client.py.

◆ SERVER_ADDRESS

string client.SERVER_ADDRESS = "localhost:23333"

Definition at line 28 of file examples/python/data_transmission/client.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:01