Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asyncio-compatible version #3

Closed
samuelscortez0616 opened this issue Jan 6, 2020 · 7 comments
Closed

Asyncio-compatible version #3

samuelscortez0616 opened this issue Jan 6, 2020 · 7 comments

Comments

@samuelscortez0616
Copy link

Hi,

I was wondering if it would be possible to have a version that is compatible with asyncio that can be pooled with other tasks. This would really help improve performance as I often to run queries both on Presto and Postgresql connections. Thank you!

@ggreg
Copy link
Contributor

ggreg commented Jan 12, 2020

Yes I was thinking of getting rid of Python2 (#5) support and when moving to Python3-only (#4), add support for asyncio.

@mvanderlee
Copy link

mvanderlee commented Jan 29, 2021

It's not PR ready, but I created an asyncio fork here: https://github.com/mvanderlee/trino-python-client/tree/py3-async

I've now created a standalone project: https://github.com/mvanderlee/aiotrino

@mvanderlee
Copy link

I've cleaned it up, got the builds passing and deployed it as aiotrino on pypi.
Based on the amount of work required, I think it makes sense as a second package instead of integrating Asyncio into the current client.
I'd gladly transfer aiotrino to the trinodb community if requested.

@ShH01m3s
Copy link

Hi! Thanks a lot for the aiotrino module! :)
Do you plan to add OAuth2Authentication authentication support to the backlog?

@mvanderlee
Copy link

@ShH01m3s I am not planning on it. I have split it to it's own repo, so feel free to submit a PR: https://github.com/mvanderlee/aiotrino

@pw24
Copy link

pw24 commented May 5, 2023

@ShH01m3s I am not planning on it. I have split it to it's own repo, so feel free to submit a PR: https://github.com/mvanderlee/aiotrino

Hi. I've tried out the library as to benefit from making multiple requests concurrently from a python client perspective. After doing so, I just added a JWTAuthentication class similar to the one used in this trino package so that a client can just pass in their jwt tokens for requests. @ShH01m3s, this likely addresses your request as well?

Just need a PR please (pull request).

@hashhar
Copy link
Member

hashhar commented Sep 3, 2024

There are no plans to add asyncio compatible client for now. Closing for now. We can revisit this in future.

For now there is an aiotrino client available outside of the main project for people who want to try out asyncio.

@hashhar hashhar closed this as not planned Won't fix, can't repro, duplicate, stale Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants