4 ms·
What's with the "for human beings" phrase? Is that a way of saying the software is easy?
by dreamdu5t 15y ago
What's with the "for human beings" phrase? Is that a way of saying the software is easy?
- RegEx 15y ago"Requests is an ISC Licensed HTTP library, written in Python, for human beings. Most existing Python modules for sending HTTP requests are extremely verbose and cumbersome. Python’s builtin urllib2 module provides most of the HTTP capabilities you should need, but the api is thoroughly broken. It requires an enormous amount of work (even method overrides) to perform the simplest of tasks."
- jabwork 15y agoIt would appear so. Based off of testimonials and briefly looking at the API I'd say this is primarily aimed at a simple API + fewer "gotchas" E.g., urllib/urllib2 both support urlopen(url, [data]) if `data` is supplied the request is executed as a POST, if not it is executed as a GET. Issuing a GET w/ a querystring requires mutating the `url` and omitting `data`. This surprised me at first, and probably a number of others
- scott_s 15y agoSome APIs are appropriate for programmers to target. Others are more appropriate for compilers or higher-abstraction libraries to target.
- JonnieCache 15y agoIt generally means it has an API which lends itself to writing readable, intuitive code.