danielgtaylor / danielgtaylor/python-betterproto
Make `grpclib` dependency optional
- 主要言語
- Python
- スター
- 1.8k
- フォーク
- 234
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
First off, thank you for this tool, I was barely able to work with the Python code that protoc generates by default.
I believe that for my usecase, the `grpclib` dependency (and the indirect dependency on four other packages) is unnecessary, and it might be worth thinking about making it optional, and enabling it via an extra. I assume this would be a breaking change, since I don't think you can make extras enabled by default. But maybe it's an idea for v2 or a future major release.
Basically all I need is to decode messages arriving from a socket. For that I don't need more than what is imported in the generated files: `Message`, `Enum`, and the `*_field` functions. As far as I can tell, these do not depend on `grpclib`.
コントリビューションガイド
調査の方向性
この issue では生成されたファイルと、それらの Message、Enum、*_field imports が示されているため、まずそれらのエントリポイントを調べ、次に grpclib がどこで宣言され、required になっているかを追跡してください。デコード専用のパスで grpclib が不要になり、gRPC のサポートが引き続き明示的に利用可能で、依存関係の動作が検証されていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- api, tooling
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100