Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'talks': 0.03; 'postgresql': 0.07; 'back-end': 0.09; 'latter': 0.09; 'subject:module': 0.09; 'api': 0.11; 'cc:addr:python-list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'maintainable': 0.16; 'readable': 0.16; 'sqlite': 0.16; 'subject:access': 0.16; 'subject:python': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'obviously': 0.18; 'module': 0.19; 'basically': 0.19; '(the': 0.22; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'creating': 0.23; 'cc:2**0': 0.24; 'source': 0.25; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'open': 0.33; 'subject:the': 0.34; 'received:google.com': 0.35; 'google': 0.35; 'there': 0.35; 'subject:?': 0.36; 'project': 0.37; 'starting': 0.37; 'same.': 0.38; 'whatever': 0.38; 'pm,': 0.38; 'simple,': 0.60; 'new': 0.61; 'connecting': 0.64; 'sam': 0.68; 'subject:SQL': 0.84; 'subject:recommended': 0.84; 'speaks': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=3DFBvY+j32A69+jwTN6KDKNCk+D+Ic1PChCIm6DiYDw=; b=Z46KuhaaQOeW8BUpaNrskWunne/FZT/siHDUO/4kayAb7KU/zL9bNM944TszYLLzTK FYWTMOrg+mp+hZFmOdM4ej/VeTJNCsdBHVkhTAjX3Sbt6CYyT0FSbO4emrKP0Ev0deOe Ta9QMU35rLG/628MTsbCA3/oXfQwhzmruxU2ddYPMP0LSl3p073rBqV50TPFzvOdqAta RQ0Yo2qtSEz4jqGk49CSaCJd71SWBDLusjlN6TOHp2UuX+RDdG+QN3TXpWn7kW29ZxUZ anpB2xWkTwD7FbY5fuTWCqNX8m0QTzBqTG302Ygk44UvGbLKlvIiWgGxNNHiY1q1Tyaa 4AFQ== MIME-Version: 1.0 X-Received: by 10.66.138.40 with SMTP id qn8mr13258202pab.154.1391850248026; Sat, 08 Feb 2014 01:04:08 -0800 (PST) In-Reply-To: References: Date: Sat, 8 Feb 2014 20:04:07 +1100 Subject: Re: What is the recommended python module for SQL database access? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391850251 news.xs4all.nl 2905 [2001:888:2000:d::a6]:33053 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65657 On Sat, Feb 8, 2014 at 7:55 PM, Sam wrote: > Is MySQLdb the recommended python module for SQL database access? Are there other modules? What I want in a module is to be able to write readable and maintainable code. > As long as you use some module that speaks the Python Database API (PEP 249, if a quick Google search has given me the right number), use whatever talks to the database back-end you want - all your code will be basically the same. Are you starting a completely new project and creating its database? Go with SQLite or PostgreSQL (the former if your needs are simple, the latter if you want a full-featured database engine); both are open source and excellent. Are you connecting to an existing database? Use that database engine, obviously :) ChrisA