Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33886

Re: Suitable software stacks for simple python web service

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <spetrie@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'encoded': 0.05; 'frameworks': 0.05; 'python3': 0.05; '21,': 0.07; 'ec2': 0.07; 'json': 0.07; 'soap': 0.07; 'url:blog': 0.09; 'python': 0.09; '22,': 0.09; 'comment,': 0.09; 'instance.': 0.09; 'stack,': 0.09; 'subject:software': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; 'apache': 0.13; 'steve': 0.13; 'url:)': 0.13; 'library': 0.15; 'url:org)': 0.15; '(payment': 0.16; 'iis,': 0.16; 'stages': 0.16; 'subject:simple': 0.16; 'supported:': 0.16; 'why,': 0.16; 'will:': 0.16; 'wsgi': 0.16; 'wsgi.': 0.16; 'candidates': 0.17; 'wrote:': 0.17; 'requests': 0.18; 'load': 0.19; 'trying': 0.21; 'wednesday,': 0.22; "i'd": 0.22; 'cheers,': 0.23; "python's": 0.23; "i've": 0.23; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'cc:addr:gmail.com': 0.27; 'i.e.': 0.27; 'integrate': 0.27; 'url:au': 0.27; 'drupal': 0.29; 'far,': 0.29; 'toolkit': 0.29; 'url:05': 0.29; 'handled': 0.29; 'url:code': 0.29; 'probably': 0.29; "i'm": 0.29; 'knows': 0.30; 'framework': 0.30; 'thursday,': 0.30; 'compatible': 0.30; 'point': 0.31; '(and': 0.32; 'running': 0.32; 'subject:service': 0.33; 'anyone': 0.33; 'likely': 0.33; 'another': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'done': 0.34; 'third': 0.34; 'thanks': 0.34; 'received:209.85': 0.35; 'there': 0.35; 'cc:no real name:2**1': 0.36; "didn't": 0.36; 'should': 0.36; 'problems': 0.36; 'uses': 0.37; 'quite': 0.37; 'received:209': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'build': 0.39; 'list,': 0.39; 'think': 0.40; 'your': 0.60; 'telling': 0.61; 'stay': 0.61; 'back': 0.62; 'future.': 0.62; 'url:p': 0.63; 'request.': 0.64; 'within': 0.64; 'our': 0.65; 'forward': 0.66; 'receive': 0.71; 'increase': 0.72; '>from': 0.75; 'bottle': 0.84; 'exchanged': 0.84; 'hour,': 0.84; 'comment.': 0.91; 'light,': 0.91; 'received:209.85.213.184': 0.91; 'seriously,': 0.91
Newsgroups comp.lang.python
Date Sat, 24 Nov 2012 04:52:03 -0800 (PST)
In-Reply-To <mailman.195.1353566559.29569.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=108.176.195.148; posting-account=lE08uAoAAAAZJOHn1pwGQ8npUIyig_sx
References <mailman.132.1353483159.29569.python-list@python.org> <ec8cdd79-0075-4a21-8197-95a72bbb8b46@googlegroups.com> <mailman.195.1353566559.29569.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-IP 108.176.195.148
MIME-Version 1.0
Subject Re: Suitable software stacks for simple python web service
From Steve Petrie <spetrie@gmail.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org, kevin.p.dwyer@gmail.com
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 <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.254.1353761526.29569.python-list@python.org> (permalink)
Lines 209
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1353761526 news.xs4all.nl 6958 [2001:888:2000:d::a6]:35097
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:33886

Show key headers only | View raw


On Thursday, November 22, 2012 1:42:42 AM UTC-5, Kev Dwyer wrote:
> Steve Petrie wrote:
> 
> 
> 
> > On Wednesday, November 21, 2012 2:32:40 AM UTC-5, Kev Dwyer wrote:
> 
> >> Hello List,
> 
> >> 
> 
> >> 
> 
> >> 
> 
> >> I have to build a simple web service which will:
> 
> >> 
> 
> >> 
> 
> >> 
> 
> >>  - receive queries from our other servers
> 
> >> 
> 
> >>  - forward the requests to a third party SOAP service
> 
> >> 
> 
> >>  - process the response from the third party
> 
> >> 
> 
> >>  - send the result back to the original requester
> 
> >> 
> 
> >> 
> 
> >> 
> 
> >> >From the point of view of the requester, this will happen within the
> 
> >> >scope
> 
> >> 
> 
> >> of a single request.
> 
> >> 
> 
> >> 
> 
> >> 
> 
> >> The data exchanged with the original requester will likely be encoded as
> 
> >> 
> 
> >> JSON; the SOAP service will be handled by SUDS.
> 
> >> 
> 
> >> 
> 
> >> 
> 
> >> The load is likely to be quite light, say a few requests per hour, though
> 
> >> 
> 
> >> this may increase in the future.
> 
> >> 
> 
> >> 
> 
> >> 
> 
> >> Given these requirements, what do you think might be a suitable software
> 
> >> 
> 
> >> stack, i.e. webserver and web framework (if a web framework is even
> 
> >> 
> 
> >> necessary)?
> 
> >> 
> 
> >> 
> 
> >> 
> 
> >> Candidates should be compatible with Python2.7, though I'd be happy to
> 
> >> 
> 
> >> consider Python 3 if anyone knows of a Python3 SOAP library that has good
> 
> >> 
> 
> >> WSDL support.
> 
> >> 
> 
> >> 
> 
> >> 
> 
> >> Cheers,
> 
> >> 
> 
> >> 
> 
> >> 
> 
> >> Kev
> 
> > 
> 
> > I'm using the Bottle web framework (http://bottlepy.org) to integrate
> 
> > requests and replies originating in a Drupal site, a Beanstream (payment
> 
> > processor) account, and a Salesforce instance.
> 
> > 
> 
> > Communication with Salesforce is done through the Salesforce Python
> 
> > Toolkit (http://code.google.com/p/salesforce-python-toolkit/), which uses
> 
> > Suds.
> 
> > 
> 
> > Communication with the Drupal site uses Python's (and PHP's on the Drupal
> 
> > side) native JSON support.
> 
> > 
> 
> > This is under Python 2.6.8 and Apache 2.2.23 running on an AWS EC2
> 
> > instance.
> 
> > 
> 
> > No (major) problems so far, though still in the early stages of this
> 
> > project.
> 
> > 
> 
> > Steve
> 
> > 
> 
> > 
> 
> > 
> 
> > I chose Bottle after trying a few other frameworks because, well, I can't
> 
> > remember exactly why, though thinking back it's probably because of the
> 
> > clarity of Bottle's approach and the simplicity of the documentation.
> 
> 
> 
> 
> 
> Hello Steve,
> 
> 
> 
> Thanks for  your comment.
> 
> 
> 
> I'm curious, did you consider any web servers other than Apache? 
> 
> 
> 
> Kev

You're telling me that there are other web servers? ;)

I didn't try any others seriously, no.  My experience is with Apache and IIS, and I try to stay away from Windows.

I should mention, given Dieter Maurer's comment, that Bottle is a (fairly thin) layer built over WSGI.  I've built applications directly over WSGI as well; that's another way to go, it's quite straightforward.  mod_python is no longer supported: http://blog.dscpl.com.au/2010/05/modpython-project-soon-to-be-officially.html.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Suitable software stacks for simple python web service Kev Dwyer <kevin.p.dwyer@gmail.com> - 2012-11-21 07:32 +0000
  Re: Suitable software stacks for simple python web service Steve Petrie <spetrie@gmail.com> - 2012-11-21 08:17 -0800
    Re: Suitable software stacks for simple python web service Kev Dwyer <kevin.p.dwyer@gmail.com> - 2012-11-22 06:42 +0000
      Re: Suitable software stacks for simple python web service Steve Petrie <spetrie@gmail.com> - 2012-11-24 04:52 -0800
        Re: Suitable software stacks for simple python web service Kev Dwyer <kevin.p.dwyer@gmail.com> - 2012-11-24 14:52 +0000
      Re: Suitable software stacks for simple python web service Steve Petrie <spetrie@gmail.com> - 2012-11-24 04:52 -0800
  Re: Suitable software stacks for simple python web service Steve Petrie <spetrie@gmail.com> - 2012-11-21 08:17 -0800

csiph-web