Public Member Functions | Public Attributes | Static Public Attributes | List of all members
protobuf_distutils.generate_py_protobufs.generate_py_protobufs Class Reference
Inheritance diagram for protobuf_distutils.generate_py_protobufs.generate_py_protobufs:
Inheritance graph
[legend]

Public Member Functions

def finalize_options (self)
 
def initialize_options (self)
 
def run (self)
 

Public Attributes

 extra_proto_paths
 
 output_dir
 
 proto_files
 
 proto_root_path
 
 protoc
 
 recurse
 
 source_dir
 

Static Public Attributes

list boolean_options = ['recurse']
 
string description = 'Generate Python sources for .proto files'
 
list user_options
 

Detailed Description

Generates Python sources for .proto files.

Definition at line 42 of file generate_py_protobufs.py.

Member Function Documentation

◆ finalize_options()

def protobuf_distutils.generate_py_protobufs.generate_py_protobufs.finalize_options (   self)
Sets the final values for the command options.

Defaults were set in `initialize_options`, but could have been changed
by command-line options or by other commands.

Definition at line 65 of file generate_py_protobufs.py.

◆ initialize_options()

def protobuf_distutils.generate_py_protobufs.generate_py_protobufs.initialize_options (   self)
Sets the defaults for the command options.

Definition at line 55 of file generate_py_protobufs.py.

◆ run()

def protobuf_distutils.generate_py_protobufs.generate_py_protobufs.run (   self)

Definition at line 135 of file generate_py_protobufs.py.

Member Data Documentation

◆ boolean_options

list protobuf_distutils.generate_py_protobufs.generate_py_protobufs.boolean_options = ['recurse']
static

Definition at line 53 of file generate_py_protobufs.py.

◆ description

string protobuf_distutils.generate_py_protobufs.generate_py_protobufs.description = 'Generate Python sources for .proto files'
static

Definition at line 45 of file generate_py_protobufs.py.

◆ extra_proto_paths

protobuf_distutils.generate_py_protobufs.generate_py_protobufs.extra_proto_paths

Definition at line 59 of file generate_py_protobufs.py.

◆ output_dir

protobuf_distutils.generate_py_protobufs.generate_py_protobufs.output_dir

Definition at line 60 of file generate_py_protobufs.py.

◆ proto_files

protobuf_distutils.generate_py_protobufs.generate_py_protobufs.proto_files

Definition at line 61 of file generate_py_protobufs.py.

◆ proto_root_path

protobuf_distutils.generate_py_protobufs.generate_py_protobufs.proto_root_path

Definition at line 58 of file generate_py_protobufs.py.

◆ protoc

protobuf_distutils.generate_py_protobufs.generate_py_protobufs.protoc

Definition at line 63 of file generate_py_protobufs.py.

◆ recurse

protobuf_distutils.generate_py_protobufs.generate_py_protobufs.recurse

Definition at line 62 of file generate_py_protobufs.py.

◆ source_dir

protobuf_distutils.generate_py_protobufs.generate_py_protobufs.source_dir

Definition at line 57 of file generate_py_protobufs.py.

◆ user_options

list protobuf_distutils.generate_py_protobufs.generate_py_protobufs.user_options
static
Initial value:
= [
('extra-proto-paths=', None,
'Additional paths to resolve imports in .proto files.'),
('protoc=', None,
'Path to a specific `protoc` command to use.'),
]

Definition at line 46 of file generate_py_protobufs.py.


The documentation for this class was generated from the following file:


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