googleapis / googleapis/google-cloud-python

(for v3) consider using anyio for the async client implementation

オープン
#15,286 コメント 1 件 リアクション 0 件 担当者 1 名 @rameshdharan が担当を希望しています GitHub で見る
api: bigtable
主要言語
Python
スター
5.4k
フォーク
1.8k
平均マージ
3日 4時間
マージ済み PR(30日)
122

説明

Thanks for stopping by to let us know something could be better!

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

**Is your feature request related to a problem? Please describe.**

Today, I can't use BigTable's Async client in my [Trio](https://github.com/python-trio/trio) application because the client assumes that the async runtime is asyncio.

**Describe the solution you'd like**

By using [Anyio](https://github.com/agronholm/anyio), the client implementation would support both the Trio and asyncio runtimes, allowing Trio users to use the client libraries without having to resort to using the sync library, and wrapping it in a lot of `trio.to_thread.run_sync` calls.

**Describe alternatives you've considered**

The client library could also support a trio-native implementation. However, this feels pretty burdensome for maintenance.

I believe this should be a ~straightforward change since the library seems to alias a lot of the asyncio methods. Swapping those out for anyio equivalents should do the right thing.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。