Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 716 Bytes

README.md

File metadata and controls

17 lines (15 loc) · 716 Bytes

mypy-protobuf-bufbuild

This repository contains files for creating a bufbuild plugin from mypy-protobuf.

The default address for the plugin is buf.build/adriansahlman/plugins/mypy-protobuf.

To use the plugin with buf simply add the plugin to your buf.gen.yaml file. Here is an example of a config that generates protobuf, grpc and typing stubs to the directory ./gen.

version: v1
plugins:
  - remote: buf.build/grpc/plugins/python:v1.44.0-1
    opt: paths=source_relative
  - remote: buf.build/protocolbuffers/plugins/python:v3.19.3-1
    out: gen
  - remote: buf.build/adriansahlman/plugins/mypy-protobuf:v3.3.0-1
    out: gen