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


Groups > comp.lang.python > #56256

Re: Database engine bindings for Python (was: Database statements via python but database left intact)

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
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; 'wiki': 0.03; 'configure': 0.05; 'subject:Python': 0.06; 'mysql,': 0.07; 'postgresql': 0.07; 'pypi': 0.07; 'apis': 0.09; 'arrays': 0.09; 'moreover,': 0.09; 'postgres': 0.09; 'python': 0.11; '(use': 0.16; 'concurrency': 0.16; 'dig': 0.16; 'fine.': 0.16; 'fixes.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'messy': 0.16; "module's": 0.16; 'sqlite': 0.16; 'subject: \n ': 0.16; 'subject:python': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'app': 0.19; 'module': 0.19; 'deployment': 0.19; 'differ': 0.19; 'work,': 0.20; 'settings': 0.22; 'issue.': 0.22; 'config': 0.24; "shouldn't": 0.24; 'fine': 0.24; '(or': 0.24; 'mention': 0.26; 'possibly': 0.26; 'least': 0.26; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; '[1]': 0.29; 'especially': 0.30; 'message-id:@mail.gmail.com': 0.30; 'getting': 0.31; 'subject:Database': 0.31; 'guess': 0.33; 'used,': 0.33; 'maybe': 0.34; 'could': 0.34; 'subject: (': 0.35; 'something': 0.35; 'point.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'doing': 0.36; 'similar': 0.36; 'should': 0.36; 'others.': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'even': 0.60; 'most': 0.60; 'hope': 0.61; 'simply': 0.61; "you're": 0.61; 'further': 0.61; "you'll": 0.62; 'such': 0.63; 'field': 0.63; '(that': 0.65; 'charset:windows-1252': 0.65; 'between': 0.67; 'nobody': 0.68; 'reads': 0.68; 'default': 0.69; 'marketing': 0.70; 'article,': 0.84; 'asshole': 0.84; 'nice,': 0.84; 'pardon': 0.84; 'subject:via': 0.84; 'terrible': 0.84; 'traffic.': 0.84; 'optimum': 0.93; '2013': 0.98
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:to :content-type:content-transfer-encoding; bh=tOdw8grTDPhXMt6cDY6M7KSkKKxI4fSQ15tMTjFv5dg=; b=DDoo0SQyw0fVGwUCl+2UvHXiLIaYFViD6LNWh00bzx/x8FSWYaPmpP5DQWrLRD8Oj3 KYyKHBos+heaLI6y+oYbs1Nap1cfIAcfz0Z+e41DNZlo/4PEDT6Xedxm1vJvsVwEnfv3 JkC6jfoEIRdy/9WwrqpeDuLdSEDBkdJz4W3a+FgA6U7eumahaw535tElqgnLK8oGRXC1 eM7W4ywuH0tPb9jqfWOmZjVw4QYMbuh0Yodo305W5wOfXx2DGp2L4TOIdtNe0CW+GKkm fYjCQTuHmQgX0a8OCz96C6kqSbzMRTEBkmaY4WWWR7XZiBcM7smtbnLjDRXRwi2Uxsul yM1Q==
MIME-Version 1.0
X-Received by 10.68.234.165 with SMTP id uf5mr25536857pbc.41.1381066675157; Sun, 06 Oct 2013 06:37:55 -0700 (PDT)
In-Reply-To <CAMw+j7L+M8-qWL4yyihfqGcqzNA7_=BMQx3ExrH9zds8apg=bg@mail.gmail.com>
References <l2pois$359$1@dont-email.me> <l2ppnh$9fc$1@dont-email.me> <l2puok$5i8$1@dont-email.me> <l2qvju$hoi$1@dont-email.me> <CAMw+j7L+M8-qWL4yyihfqGcqzNA7_=BMQx3ExrH9zds8apg=bg@mail.gmail.com>
Date Mon, 7 Oct 2013 00:37:55 +1100
Subject Re: Database engine bindings for Python (was: Database statements via python but database left intact)
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding quoted-printable
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 <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.781.1381066683.18130.python-list@python.org> (permalink)
Lines 42
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1381066683 news.xs4all.nl 15887 [2001:888:2000:d::a6]:47218
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:56256

Show key headers only | View raw


On Sun, Oct 6, 2013 at 8:10 PM, Chris “Kwpolska” Warrick
<kwpolska@gmail.com> wrote:
> It would require Postgres around people’s (or at least packagers’)
> systems, and it often gets messy when we have such requirements.

I would hope that an absence of libpq could simply result in a
courteous exception when the module's imported, but maybe that'd be
hard to implement.

> Also, Postgres is much harder to configure than MySQL,
> especially if you have no experience or an asshole OS.

You can get a ready-to-go Postgres under Debian by simply apt-getting
it. The default config might not give you optimum performance, but
it'll work just fine. Most people shouldn't need to dig into the
configs of _any_ database before getting the app going -
out-of-the-box settings should be fine for early development, even
deployment if you're not doing a lot of traffic.

> Moreover, the stdlib is where packages come to die.

Fair point. That is an issue.

> We should also educate people on how PostgreSQL works with a nice,
> human-friendly tutorial.  Especially in some non-standard things and
> things that differ between PostgreSQL and MySQL — like how to make an
> auto-incrementing ID field (use sequences), or how PostgreSQL arrays
> work, among others.  The wiki (that nobody reads anyways) could also
> use some marketing fixes.

Maybe! Possibly go a bit further and say "How-to: Python and
Databasing", which could mention SQLite (great for something tiny),
PostgreSQL (great for concurrency / multi-user), and "Other databases
can also be used, with similar or identical APIs - check out PyPI for
a module for your favorite database engine".

I guess the above paragraph is sentencing [1] me to write the article, now...

ChrisA

[1] if you'll pardon a terrible pun

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


Thread

Database statements via python but database left intact Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-10-05 22:16 +0300
  Re: Database statements via python but database left intact Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-10-05 22:27 +0300
  Re: Database statements via python but database left intact Zero Piraeus <z@etiol.net> - 2013-10-05 16:29 -0300
    Re: Database statements via python but database left intact Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-10-05 22:36 +0300
      Re: Database statements via python but database left intact Ian Kelly <ian.g.kelly@gmail.com> - 2013-10-05 14:31 -0600
        Re: Database statements via python but database left intact Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-10-06 00:02 +0300
          Re: Database statements via python but database left intact Ned Batchelder <ned@nedbatchelder.com> - 2013-10-05 17:39 -0400
          Re: Database statements via python but database left intact Chris Angelico <rosuav@gmail.com> - 2013-10-06 09:51 +1100
          Database engine bindings for Python (was: Database statements via python but database left intact) Ben Finney <ben+python@benfinney.id.au> - 2013-10-06 12:05 +1100
          Re: Database engine bindings for Python (was: Database statements via python but database left intact) Chris Angelico <rosuav@gmail.com> - 2013-10-06 12:19 +1100
          Re: Database engine bindings for Python (was: Database statements via python but database left intact) Dan Sommers <dan@tombstonezero.net> - 2013-10-06 06:22 +0000
            Re: Database engine bindings for Python (was: Database statements via python but database left intact) Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-10-06 11:10 +0200
            Re: Database engine bindings for Python (was: Database statements via python but database left intact) Chris Angelico <rosuav@gmail.com> - 2013-10-07 00:37 +1100
              Re: Database engine bindings for Python (was: Database statements via python but database left intact) Roy Smith <roy@panix.com> - 2013-10-06 10:05 -0400
          Re: Database statements via python but database left intact Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-10-06 11:05 +0200
            Re: Database statements via python but database left intact rusi <rustompmody@gmail.com> - 2013-10-06 04:36 -0700
              Re: Database statements via python but database left intact Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-10-06 14:01 +0200
          Re: Database statements via python but database left intact Zero Piraeus <z@etiol.net> - 2013-10-05 18:45 -0300
            Re: Database statements via python but database left intact Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-10-06 18:57 +0300
              Re: Database statements via python but database left intact Piet van Oostrum <piet@vanoostrum.org> - 2013-10-06 17:40 -0400
          Re: Database statements via python but database left intact Adam Tauno Williams <awilliam@whitemice.org> - 2013-10-06 11:55 -0400
      Re: Database statements via python but database left intact Adam Tauno Williams <awilliam@whitemice.org> - 2013-10-06 11:52 -0400
        Re: Database statements via python but database left intact Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-10-06 19:49 +0300

csiph-web