3 ms·
First, why is the author recommending SimpleJSON? Just use json, it's built into the standard lib! (Also if I'm not mistaken the json implementation included in
by llambda 15y ago
First, why is the author recommending SimpleJSON? Just use json, it's built into the standard lib! (Also if I'm not mistaken the json implementation included in Python may even be based on simplejson, the APIs are very similar even if not.)
Second, I disagree that Django is the best web framework. It might be the best web framework, but it depends on what you're doing. I've come to prefer Flask for its simplicity and overall the way it feels more Pythonic.
That said, requests cannot be recommended enough! It is an awesome package that should not be missed if you're doing web programming in Python.
- pyre 15y agorequests comes close to Perl's LWP::UserAgent in terms of usability, but LWP::UserAgent has been around for years. I don't know how that makes Python the 'best language for interacting with the web.'
- draegtun 15y agoAnd also LWP::UserAgent has two younger whipper snappers biting at its heels! * HTTP::Tiny - lightweight useragent that comes with 5.14 use HTTP::Tiny; print HTTP::Tiny->new->get('http://gun.io')->{content}; * And the all singing and dancing Mojo::UserAgent use Mojo::UserAgent; print Mojo::UserAgent->new ->get('https://github.com/timeline.json') ->res->json->{repository}->{name};
- pjscott 15y agoSimplejson is completely API-compatible with standard library json, but an order of magnitude faster.