Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82445
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <alec.taylor6@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'subject:Python': 0.06; 'attribute': 0.07; 'urllib2': 0.07; 'abstraction': 0.09; 'apis': 0.09; 'http': 0.09; 'restful': 0.09; 'url:github': 0.09; 'wrapper': 0.09; 'api': 0.11; 'apis.': 0.16; 'far)': 0.16; 'magic': 0.16; 'parameter.': 0.16; 'programmatic': 0.16; 'subject:API': 0.16; 'bit': 0.19; 'module': 0.19; 'frameworks': 0.24; 'lets': 0.24; 'required.': 0.27; 'rest': 0.29; '----': 0.29; 'related': 0.29; 'converting': 0.30; 'message- id:@mail.gmail.com': 0.30; 'skip:# 10': 0.33; 'something': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'skip:> 10': 0.36; 'method': 0.36; 'thanks': 0.36; 'subject:?': 0.36; 'level': 0.37; 'focused': 0.38; 'generic': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'remove': 0.60; 'simple': 0.61; 'name': 0.63; 'high': 0.63; 'provide': 0.64; 'more': 0.64; 'great': 0.65; 'results': 0.69; 'consumer': 0.70; 'wrapper,': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=uGy3Bm+9KaojUQREP4RWf9FVRuRZDZ/j9bSW7XSNkMk=; b=JAM4N6VF6s5g3nCZrcrrwZVP720nwrmWCCw5On0U3MnNi/doZJ4cKwhkGTRqBgE7hQ ctesHnWtQHn2aVqag6RgnAMgQqC4xj5mYKaJ9Lc73Yd5DJH7IravaP0G8kmrIj+h5QpS VacFVaEhO/38YCjL+Evr8G9wxXGClC01qKy5FDrXAlW5HZ7b7dEq3EHIJj18RuNhEuvb d5KaBUZZhhMAdZdXbfYtXR0OMOLB3G3RC8E9TMUqd3TgcPLH1Oe6LlV5M4vwKsWSz3AF EKIf0VawH7O+B6nJDty6eKsiBiFD3Oez+bFZTh8nqsDUMHvNSopW3zs+oZA5+paKkDDa xEHw== |
| MIME-Version | 1.0 |
| X-Received | by 10.224.46.134 with SMTP id j6mr8030513qaf.74.1418393494173; Fri, 12 Dec 2014 06:11:34 -0800 (PST) |
| Date | Sat, 13 Dec 2014 01:11:34 +1100 |
| Subject | Python REST API Wrapper framework? |
| From | Alec Taylor <alec.taylor6@gmail.com> |
| To | "comp.lang.python" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16909.1418393502.18130.python-list@python.org> (permalink) |
| Lines | 27 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1418393502 news.xs4all.nl 2977 [2001:888:2000:d::a6]:36172 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:82445 |
Show key headers only | View raw
It's not overly difficult to build a wrapper of someones RESTfull HTTP API using something like: urllib2 or requests. However, there is still a decent amount of generic boilerplate required. Are there any decent frameworks around which reduce the amount of boilerplate required to consume 3rd-party APIs? # Research results (thus far) So far my research has come up with: ###[Finsh](https://github.com/jaimegildesagredo/finch) >Asynchronous RESTful API consumer for Python. Finch is focused on remove all of the boilerplate related to consuming http based APIs and provide a high level abstraction to develop API clients. ###[Hammock](https://github.com/kadirpekel/hammock) >Hammock is a fun module lets you deal with rest APIs by converting them into dead simple programmatic APIs. ###[Tortilla](https://github.com/redodo/tortilla) >Wrapping web APIs made easy. Tortilla uses a bit of magic to wrap APIs. Whenever you get or call an attribute of a wrapper, the URL is appended by that attribute's name or method parameter. ---- Would be great to get more suggestions + scientific anecdotes =) Thanks
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Python REST API Wrapper framework? Alec Taylor <alec.taylor6@gmail.com> - 2014-12-13 01:11 +1100
csiph-web