google-maps-services-python icon indicating copy to clipboard operation
google-maps-services-python copied to clipboard

Switch from `requests` to `httpx`

Open uriyyo opened this issue 2 years ago • 4 comments

httpx is a modern, fully type annotated HTTP python client that has both sync and async clients implemented.

I guess it will be great to switch to it, and it should be pretty easy cause it is fully compatible with requests public interface.

And as far as it has async support it should be easier to implement #368.

uriyyo avatar Mar 21 '23 11:03 uriyyo

If you would like to upvote the priority of this issue, please comment below or react with :+1: so we can see what is popular when we triage.

@uriyyo Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

wangela avatar Mar 21 '23 11:03 wangela

Getting the speed of this client up would be great, it is very slow at the moment, managing only 5 requests per second, well below the limits

icfly2 avatar Jun 26 '23 21:06 icfly2

I would like to implement this, if nobody else is already working on it? *EDIT: @wangela given python doesn't have builtin async functionality, would this really be a worthwhile endeavour?

Thanks

ThugPigeon653 avatar Sep 19 '23 05:09 ThugPigeon653

Hello there,

Sorry to barge in, There's an alternative you may be interested in. https://github.com/jawah/niquests

This is a drop-in-worthy replacement for Requests that ships with modern capabilities and allows you a painless transition. I can answer any concerns you may have.

Ousret avatar Dec 06 '23 11:12 Ousret