You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Buf is a really awesome tool and thank you for your hard work! We already have package prefixes for Go and Java, can we have the same for Python? For example, instead of import object, importing package_prefix.object makes it much easier to package and publish Python packages.
Thanks!
The text was updated successfully, but these errors were encountered:
Thanks for the issue @zxia-wish! For Managed Mode, we can only support the standard file options defined by google/protobuf/descriptor.proto. Python doesn't support any file options, so we can't control the behavior of the plugin in the same way as we do with go_package_prefix (i.e. we can use the go_package option for that).
From what I can tell, the protoc-gen-python plugin doesn't support any other compiler options, as described in the official documentation, so I don't think we can do anything here to help your use case.
For what it's worth, it looks like this is related to protocolbuffers/protobuf#881. I'll close this issue for now since we'll need to see changes to protoc-gen-python.
Hi team!
Buf is a really awesome tool and thank you for your hard work! We already have package prefixes for Go and Java, can we have the same for Python? For example, instead of import
object
, importingpackage_prefix.object
makes it much easier to package and publish Python packages.Thanks!
The text was updated successfully, but these errors were encountered: