![](/img/trans.png)
[英]Google Protobuf - UDP Communication Between C++ and Python - google.protobuf.message.DecodeError: unpack requires a string argument of length 4
[英]Python equivalence of C++ protobuf message differencer
我試圖比較 Python 中的兩個 protobuf 消息是否相等,忽略列表中的 order 元素等等。
對於 C++,我找到了 MessageDifferencer ( https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.util.message_differencer )
現在我在 Python 中尋找類似的東西,但真的找不到任何東西。 我可以使用什么建議?
謝謝
我認為什么都不存在。 您可能可以使用CLIF或類似的東西在 python 中包裝 C++ 實現。
我在https://github.com/dayfine/proto-matcher 中自己實現了一個版本(只有基本的功能集)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.