Classes | Functions | Variables
grpc_tools.protoc Namespace Reference

Classes

class  ProtoFinder
 
class  ProtoLoader
 

Functions

def _maybe_install_proto_finders ()
 
def _module_name_to_proto_file (suffix, module_name)
 
def _proto_file_to_module_name (suffix, proto_file)
 
def _protos (protobuf_path)
 
def _protos_and_services (protobuf_path)
 
def _services (protobuf_path)
 
def main (command_arguments)
 

Variables

string _DISABLE_DYNAMIC_STUBS = "GRPC_PYTHON_DISABLE_DYNAMIC_STUBS"
 
bool _FINDERS_INSTALLED = False
 
 _FINDERS_INSTALLED_LOCK = threading.Lock()
 
dictionary _proto_code_cache = {}
 
 _proto_code_cache_lock = threading.RLock()
 
string _PROTO_MODULE_SUFFIX = "_pb2"
 
string _SERVICE_MODULE_SUFFIX = "_pb2_grpc"
 
 proto_include = pkg_resources.resource_filename('grpc_tools', '_proto')
 

Function Documentation

◆ _maybe_install_proto_finders()

def grpc_tools.protoc._maybe_install_proto_finders ( )
private

Definition at line 51 of file protoc.py.

◆ _module_name_to_proto_file()

def grpc_tools.protoc._module_name_to_proto_file (   suffix,
  module_name 
)
private

Definition at line 65 of file protoc.py.

◆ _proto_file_to_module_name()

def grpc_tools.protoc._proto_file_to_module_name (   suffix,
  proto_file 
)
private

Definition at line 72 of file protoc.py.

◆ _protos()

def grpc_tools.protoc._protos (   protobuf_path)
private
Returns a gRPC module generated from the indicated proto file.

Definition at line 77 of file protoc.py.

◆ _protos_and_services()

def grpc_tools.protoc._protos_and_services (   protobuf_path)
private
Returns two modules, corresponding to _pb2.py and _pb2_grpc.py files.

Definition at line 94 of file protoc.py.

◆ _services()

def grpc_tools.protoc._services (   protobuf_path)
private
Returns a module generated from the indicated proto file.

Definition at line 85 of file protoc.py.

◆ main()

def grpc_tools.protoc.main (   command_arguments)
Run the protocol buffer compiler with the given command-line arguments.

  Args:
command_arguments: a list of strings representing command line arguments to
    `protoc`.

Definition at line 29 of file protoc.py.

Variable Documentation

◆ _DISABLE_DYNAMIC_STUBS

string grpc_tools.protoc._DISABLE_DYNAMIC_STUBS = "GRPC_PYTHON_DISABLE_DYNAMIC_STUBS"
private

Definition at line 26 of file protoc.py.

◆ _FINDERS_INSTALLED

bool grpc_tools.protoc._FINDERS_INSTALLED = False
private

Definition at line 48 of file protoc.py.

◆ _FINDERS_INSTALLED_LOCK

grpc_tools.protoc._FINDERS_INSTALLED_LOCK = threading.Lock()
private

Definition at line 49 of file protoc.py.

◆ _proto_code_cache

dictionary grpc_tools.protoc._proto_code_cache = {}
private

Definition at line 98 of file protoc.py.

◆ _proto_code_cache_lock

grpc_tools.protoc._proto_code_cache_lock = threading.RLock()
private

Definition at line 99 of file protoc.py.

◆ _PROTO_MODULE_SUFFIX

string grpc_tools.protoc._PROTO_MODULE_SUFFIX = "_pb2"
private

Definition at line 23 of file protoc.py.

◆ _SERVICE_MODULE_SUFFIX

string grpc_tools.protoc._SERVICE_MODULE_SUFFIX = "_pb2_grpc"
private

Definition at line 24 of file protoc.py.

◆ proto_include

grpc_tools.protoc.proto_include = pkg_resources.resource_filename('grpc_tools', '_proto')

Definition at line 172 of file protoc.py.



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