Flutterwave / Python-v2

Python library for Flutterwave for Business (F4B) v2 APIs
https://developer.flutterwave.com/
MIT License
21 stars 15 forks source link

Replace requests with pycurl-requests #80

Closed chibie closed 4 years ago

chibie commented 4 years ago

Description

Replaced requests with pycurl-requests.

Motivation and Context

"The requests library is broken in many ways as to be useless for any server that is strict or slightly non-conforming. There are requests that work perfectly fine with curl but that get rejected when made with the requests library due to its various unnecessary sanitizing"

Encountered delays in response at several times with an instance of trying to get balance while in server. Was also unable to create a connection reliably using HTTPS. Such delays weren't experienced while using cURL to make request from the server.

@Flutterwave/Corvus97 What do you think about these updates?

corneliusyaovi commented 4 years ago

Hello @chibie,

Thanks for taking out time to contribute to the Library.

Were you able to test these changes?

chibie commented 4 years ago

@Corvus97 yes i tested.

i currently use my fork in production.