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


Groups > comp.lang.python > #28355

Re: simple client data base

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'sqlite': 0.09; 'add,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'rivet': 0.16; 'subject:simple': 0.16; 'tuples,': 0.16; 'wrote:': 0.17; 'module': 0.19; 'appropriate': 0.20; 'all,': 0.21; 'combination': 0.22; 'stick': 0.22; 'help.': 0.22; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'disk': 0.27; 'structures': 0.27; 'header:X -Complaints-To:1': 0.28; 'dictionary': 0.29; 'pickle': 0.29; 'use?': 0.29; "i'm": 0.29; 'maybe': 0.29; 'point': 0.31; 'from:addr:yahoo.co.uk': 0.32; 'structure': 0.32; 'subject:data': 0.33; 'anyone': 0.33; 'to:addr:python-list': 0.33; 'thanks': 0.34; 'similar': 0.35; 'there': 0.35; 'received:org': 0.36; 'but': 0.36; 'client': 0.36; 'option': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'some': 0.38; 'possible.': 0.38; 'delete': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'real': 0.61; 'save': 0.61; 'more': 0.63; 'telephone': 0.64; 'store,': 0.65; 'home': 0.66; 'capabilities': 0.71; 'address,': 0.79; 'business.': 0.82; 'social,': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: simple client data base
Date Mon, 03 Sep 2012 15:37:16 +0100
References <lae9489ct99mp704um93sdqlatofb2i8gq@4ax.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host host-92-24-120-91.ppp.as43234.net
User-Agent Mozilla/5.0 (Windows NT 6.0; rv:15.0) Gecko/20120824 Thunderbird/15.0
In-Reply-To <lae9489ct99mp704um93sdqlatofb2i8gq@4ax.com>
X-Antivirus avast! (VPS 120903-0, 03/09/2012), Outbound message
X-Antivirus-Status Clean
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>
Newsgroups comp.lang.python
Message-ID <mailman.144.1346682970.27098.python-list@python.org> (permalink)
Lines 31
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1346682970 news.xs4all.nl 6870 [2001:888:2000:d::a6]:33962
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:28355

Show key headers only | View raw


On 03/09/2012 15:12, Mark R Rivet wrote:
> Hello all, I am learning to program in python. I have a need to make a
> program that can store, retrieve, add, and delete client data such as
> name, address, social, telephone number and similar information. This
> would be a small client database for my wife who has a home accounting
> business.
>
> I have been reading about lists, tuples, and dictionary data
> structures in python and I am confused as to which would be more
> appropriate for a simple database.
>
> I know that python has real database capabilities but I'm not there
> yet and would like to proceed with as simple a structure as possible.
>
> Can anyone give me some idea's or tell me which structure would be
> best to use?
>
> Maybe its a combination of structures? I need some help.
>
> Thanks for your help.
>

If you stick with the simple data structures at some point you're going 
to have to save them to disk with a module like pickle or shelve.  IMHO 
using sqlite is a better option as it comes with Python.

-- 
Cheers.

Mark Lawrence.

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


Thread

simple client data base Mark R Rivet <markrrivet@aol.com> - 2012-09-03 10:12 -0400
  Re: simple client data base "Martin P. Hellwig" <martin.hellwig@gmail.com> - 2012-09-03 07:27 -0700
  Re: simple client data base Chris Angelico <rosuav@gmail.com> - 2012-09-04 00:28 +1000
  Re: simple client data base Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-03 15:37 +0100
  Re: simple client data base Peter Otten <__peter__@web.de> - 2012-09-03 16:50 +0200
    Re: simple client data base Mark R Rivet <markrrivet@aol.com> - 2012-09-08 15:22 -0400
      Re: simple client data base Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-08 17:42 -0400
  Re: simple client data base Wolfgang Keller <feliphil@gmx.net> - 2012-09-03 18:03 +0200
    Re: simple client data base Walter Hurry <walterhurry@lavabit.com> - 2012-09-03 19:02 +0000
      Re: simple client data base Wolfgang Keller <feliphil@gmx.net> - 2012-09-04 15:17 +0200
  Re: simple client data base Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-04 04:25 +0200
    Re: simple client data base Mark R Rivet <markrrivet@aol.com> - 2012-09-08 15:40 -0400
      Re: simple client data base Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-11 13:28 +0200
  Re: simple client data base Ramchandra Apte <maniandram01@gmail.com> - 2012-09-05 05:57 -0700
    Re: simple client data base Mark R Rivet <markrrivet@aol.com> - 2012-09-08 15:42 -0400
  Re: simple client data base Bryan <bryanjugglercryptographer@yahoo.com> - 2012-09-06 01:57 -0700
    Re: simple client data base Mark R Rivet <markrrivet@aol.com> - 2012-09-08 15:47 -0400
      Re: simple client data base Jason Friedman <jason@powerpull.net> - 2012-09-08 14:05 -0600
      Re: simple client data base Paul Rubin <no.email@nospam.invalid> - 2012-09-08 13:11 -0700
        Re: simple client data base Ian W <mymixedmess@gmail.com> - 2012-09-08 15:32 -0500
        Re: simple client data base Walter Hurry <walterhurry@lavabit.com> - 2012-09-08 20:39 +0000
      Re: simple client data base Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-09-08 21:03 +0000
      Re: simple client data base Bryan <bryanjugglercryptographer@yahoo.com> - 2012-09-09 09:06 -0700
      Re: simple client data base Tim Chase <python.list@tim.thechases.com> - 2012-09-09 13:27 -0500
        Re: simple client data base Paul Rubin <no.email@nospam.invalid> - 2012-09-09 11:55 -0700

csiph-web