Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'parsing': 0.09; 'caliber': 0.16; 'fine.': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'iirc': 0.16; 'in- memory': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'sqlite': 0.16; ':-)': 0.16; 'wrote:': 0.18; 'backend': 0.19; 'seems': 0.21; 'tests': 0.22; 'to:name :python-list@python.org': 0.22; 'header:User-Agent:1': 0.23; 'regardless': 0.24; 'cheers,': 0.24; 'header:In-Reply-To:1': 0.27; 'xml': 0.29; 'andrew': 0.30; "year's": 0.31; 'yes.': 0.31; 'standards': 0.33; 'could': 0.34; 'objects': 0.35; 'but': 0.35; 'received:com.au': 0.36; 'next': 0.36; 'charset:us-ascii': 0.36; 'thanks': 0.36; 'unit': 0.37; 'so,': 0.37; 'server': 0.38; 'received:211': 0.38; 'needed': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; "you're": 0.61; 'content- disposition:inline': 0.62; 'soon': 0.63; 'choose': 0.64; 'provide': 0.64; 'rita': 0.84 Date: Mon, 3 Feb 2014 09:40:35 +1100 From: Cameron Simpson To: "python-list@python.org" Subject: Re: mapping objects MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) References: X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.1 cv=bpB1Wiqi c=1 sm=1 tr=0 a=YuQlxtEQCowy2cfE5kc7TA==:117 a=YuQlxtEQCowy2cfE5kc7TA==:17 a=ZtCCktOnAAAA:8 a=PO7r1zJSAAAA:8 a=LcaDllckn3IA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=8AHkEIZyAAAA:8 a=2S5x5tFyFfoA:10 a=pGLkceISAAAA:8 a=mcGgrnWI-jkyapa5vOsA:9 a=CjuIK1q_8ugA:10 a=MSl-tDqOz04A:10 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391382348 news.xs4all.nl 2911 [2001:888:2000:d::a6]:45919 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65291 On 02Feb2014 07:41, Rita wrote: > Thanks for the response Cameron. No amount of 'googling' could provide me > with that caliber response :-) > > So, it seems regardless I would need a database. To use SQLA, yes. The SQLite backend is a very cheap/easy way to start; local files, no server needed etc. In unit tests I use this DB URL: 'sqlite:///:memory:'. It makes an in-memory database. Of course, it vanishes as soon the the program exits, but for this purpose that's fine. BTW, if you're parsing XML data specificly, look at BeautifulSoup 4 and XPath (search syntax; IIRC the XML objects you get from BS4 can use it to locate things). Cheers, -- Cameron Simpson The nice thing about standards is that you have so many to choose from; furthermore, if you do not like any of them, you can just wait for next year's model. - Andrew S. Tanenbaum