Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone03.am1.xlned.com!bcyclone03.am1.xlned.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'great.': 0.07; 'cc:addr :python-list': 0.09; 'implemented.': 0.09; 'subject:Writing': 0.09; 'subject:module': 0.09; 'received:172.18.0': 0.16; 'subject:api': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'for?': 0.23; 'thanks,': 0.24; 'examples': 0.24; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'example': 0.26; 'rest': 0.26; 'good.': 0.32; 'interact': 0.35; 'something': 0.35; 'url:org': 0.36; 'modules': 0.36; 'subject:: ': 0.37; 'url:en': 0.39; 'url:2014': 0.66; 'services.': 0.72; 'you:': 0.79; 'url:latest': 0.91 X-Authority-Analysis: v=2.1 cv=av94c3tV c=1 sm=1 tr=0 a=g3mLq75WYuDrh3Lt0JSDww==:117 a=g3mLq75WYuDrh3Lt0JSDww==:17 a=QC7fh9NfAAAA:8 a=5pFAO2ZBLFIA:10 a=8nJEP1OIZ-IA:10 a=ff-B7xzCdYMA:10 a=3lewGKlCAAAA:8 a=owC0bhTBAAAA:8 a=1MYpwnNRyyjN_aOjAewA:9 a=wPNLvfGTeEIA:10 a=00phc2pgGzYA:10 a=N8Mj0xOoirIA:10 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.activenetwerx.com X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=RDNS_NONE autolearn=no autolearn_force=no version=3.4.0 From: "Joseph L. Casale" To: Laura Creighton CC: "python-list@python.org" Subject: Re: Writing a module to abstract a REST api Thread-Topic: Writing a module to abstract a REST api Thread-Index: AQHQ8VdKzAS7nkl7nU2AayZu81Yu155BUVSA//+x4IM= Date: Thu, 17 Sep 2015 18:04:39 +0000 References: <1b35c9c9b6864d7bb9bf11e0e3cb98ca@exch.activenetwerx.com>, <201509171641.t8HGfZjb008471@fido.openend.se> In-Reply-To: <201509171641.t8HGfZjb008471@fido.openend.se> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [72.29.233.193] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CMAE-Envelope: MS4wfJ9fw1nSpkVenWbh9Q1rkQayaNBGdCe7hZoVmuDM/SLNThwxv6uXhlSzYHA9GMmkO+o3L2hByU7NWlvuIwO4Kj6cnysxyMoMaVDfP9eVTMh339YuMWQNvDDz8NkOU/cSPW67esS50MxIxsaOsTyxT57Y+GBAx4yt4qovfdnGGjTQcTZUqfbZrf9yE5wqWpq9jg== X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1442513245 news.xs4all.nl 23755 [2001:888:2000:d::a6]:47375 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3894 X-Received-Body-CRC: 3920120701 Xref: csiph.com comp.lang.python:96776 > If I understand you:=0A= > http://www.python-requests.org/en/latest/=0A= > =0A= > is an example of what you are looking for?=0A= > =0A= > It's great.=0A= > =0A= > Also check out=0A= > http://cramer.io/2014/05/20/mocking-requests-with-responses/=0A= > =0A= > if you need to mock requests.=0A= =0A= Hi Laura,=0A= The twitter samples Jon sent were good. What I am after is examples=0A= of modules that are written to interact with REST services. Its just not=0A= something I have written a module for and I am keen to see how well=0A= written modules have been implemented.=0A= =0A= Thanks,=0A= jlc=