googleapis / googleapis/google-cloud-python

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

Ouverte
#15,286 1 commentaire 0 réactions 1 personne assignée Réclamée par @rameshdharan Voir sur GitHub
api: bigtable
Langage dominant
Python
Étoiles
5.4k
Forks
1.8k
Merge moyen
3 j 4 h
PR mergées (30 j)
122

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.