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


Groups > comp.lang.python > #65291

Re: mapping objects

Date 2014-02-03 09:40 +1100
From Cameron Simpson <cs@zip.com.au>
Subject Re: mapping objects
References <CAOF-Kfjc0P0YaGj5XtEzSkLR98-grDyW=V1BDqEhuPLVT4x-_w@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.6312.1391382348.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 02Feb2014 07:41, Rita <rmorgan466@gmail.com> 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 <cs@zip.com.au>

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

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


Thread

Re: mapping objects Cameron Simpson <cs@zip.com.au> - 2014-02-03 09:40 +1100

csiph-web