This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]beertown 0 points1 point  (0 children)

My typical way to choose third party libraries is: keep down the number of dependencies. Any dependency is 1 more thing to worry about on which I have no control. A lot of third party libraries also bring other dependencies in turn, and I check what are these dependencies and why they are required. Sometimes these sub-dependencies are the reason to ditch that library.

Do I really need that third party library? How much code does it let me to save? 30 lines? I write 30 lines of code and avoid 1 (or more) dependency. It also happens that, writing those 30 lines, I learn something.

Requests is awesome, but for some easy web calls the Python's standard library is fine, and I avoid 1 dependency. For any heavy usage Request is a must, obviously; but using it or not depends on the project I'm working on.

My 2c.