googleapis / googleapis/google-cloud-python

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

Abierto
#15,286 1 comentario 0 reacciones 1 asignado Reclamado por @rameshdharan Ver en GitHub
api: bigtable
Lenguaje dominante
Python
Estrellas
5.4k
Forks
1.8k
Merge medio
3 d 4 h
PR fusionados (30 d)
122

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.