The python requests library is widely used and respected. But it contains almost 7,000 lines of code and with it's own dependencies over 24,000 lines of code. Each one of those could have bugs or security holes someday. Having a dependency like this could or expose you to things like medium.com/checkmarx-security/

Did you know the python standard library can make http requests with urllib? It is a little clunkier interface wise, but it works for everything I've thrown at it.

Follow

There's a lot in the standard library that people don't even know about including: an http server, the ability to use a sqllite database directly, turtle-style graphics, C bindings for gui applications with TCL and probably more I haven't learned about. By learning what is in it, or other languages standard libraries you can make your applications and libraries much more stable, secure and resilient. Read those docs before reaching for a third party alternative!

· · Web · 0 · 0 · 2
Sign in to participate in the conversation
Linux.Pizza

A instance dedicated - but not limited - to people with an interest in the GNU+Linux ecosystem and/or general tech. Sysadmins to enthusiasts, creators to movielovers - Welcome!