Expand description
§python-proto-importer
A Rust-powered CLI that brings production-grade reliability to Python gRPC/Protobuf code generation. Generate, validate, and maintain protobuf-based Python code with confidence.
§Core Features
- Automatic Import Rewriting: Converts absolute imports to relative imports for better portability
- Built-in Quality Assurance: Validates generated code before it reaches your project
- Comprehensive Verification: Import testing and optional type checking with optimal settings
- Production-Ready Workflow: Single command for generation, postprocessing, and validation
§Quick Start
# pyproject.toml
[tool.python_proto_importer]
inputs = ["proto/**/*.proto"]
out = "generated"Then run: proto-importer build
Modules§
- commands
- config
- doctor
- postprocess
- Post-processing modules for generated Python protobuf code.
- verification
- Verification modules for generated Python protobuf code.
Functions§
- run_cli
- Main entry point for CLI usage.
- run_
cli_ with - Entry point for CLI usage with custom arguments.