Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'cpython': 0.05; 'pypy': 0.07; 'subject:released': 0.07; 'url:blog': 0.09; 'python': 0.09; 'compression': 0.09; 'pyodbc': 0.09; 'script,': 0.09; 'url:pypy': 0.09; '2.7': 0.13; 'skip:p 40': 0.15; 'subject:1.0': 0.16; 'subject:3.3': 0.16; 'url:py': 0.16; 'driver': 0.17; 'module,': 0.17; 'windows': 0.19; 'module': 0.19; 'skip:p 30': 0.20; 'subject:) ': 0.20; 'bit': 0.21; 'import': 0.21; '2.x': 0.22; 'ctypes': 0.22; 'subject:support': 0.22; 'runs': 0.22; 'linux': 0.24; 'script': 0.24; 'implemented': 0.27; '2.6': 0.27; 'message-id:@mail.gmail.com': 0.27; 'lines': 0.28; 'url:code': 0.29; 'connection': 0.30; 'url:source': 0.30; 'primary': 0.30; 'file': 0.32; 'to:addr:python-list': 0.33; 'tutorial': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'built-in': 0.35; 'table': 0.35; 'url:org': 0.36; 'totally': 0.36; 'subject:with': 0.36; 'subject: (': 0.36; 'skip:( 30': 0.38; 'page': 0.38; 'to:addr:python.org': 0.39; 'url:p': 0.63; '8bit%:31': 0.65; 'home': 0.66; '3000': 0.71; 'from:charset:gb2312': 0.78; '(id': 0.84; 'url:cn': 0.97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=0FCLADDmm+7cNj0gn4ICoB+qus6uqHc7fE2uhAPTbW0=; b=p61H1YHJnkyAkw9oV0oWqjcuUObx60gQcqcn+50dx2lqkelmK70P78CurPI+Y1Y0qt ey4eV7iNut6HtlxVwqRXzQjqCjaNx2hG61cwbeXzi14QJAgEHP4+NXX7JhrWfsqZsPo4 RDEpYN3w/t8pFEPYvru4/q1CUFh1hqFUdk+e3iWRBBdlzSSt4R9cCIuJ6ljLbIPNXHEU mSxzrHQgBmnImkyM9TxqX45Mz74EqRJrI6tsrWxdfKkA/ZmPKOPknzMfTLOvjqcz/tzb SqnFcoN6N0tAeiWLEkCm90RzmaY/icY5HWtm/kHrRqCkC8tj904AwXJs7mPY231uEQpw ef9w== MIME-Version: 1.0 X-Received: by 10.50.219.228 with SMTP id pr4mr12715013igc.40.1361451971429; Thu, 21 Feb 2013 05:06:11 -0800 (PST) Date: Thu, 21 Feb 2013 21:06:11 +0800 Subject: PyPyODBC 1.0 (Pure Python ODBC) released with Python 3.3 support From: =?GB2312?B?va3OxA==?= To: python-list@python.org Content-Type: multipart/alternative; boundary=bcaec555513c22e0e404d63bbda2 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: 147 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361451974 news.xs4all.nl 6949 [2001:888:2000:d::a6]:57832 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39422 --bcaec555513c22e0e404d63bbda2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable PyPyODBC, the single script Python ODBC module, now runs under both Python 2.x and Python 3.3 PyPyODBC - A Pure Python ctypes ODBC module > > Features > > - *One pure Python script, runs on CPython / IronPython > / PyPy , Version 2.4 / 2.5 / 2.6 / 2.7 , Win / > Linux , 32 / 64 bit* > - *Almost totally same usage as pyodbc > * ( can be seen as a re-implementation of pyodbc in pure Python ) > - *Simple - the whole module is implemented in a single python script > with less than 3000 lines > * > - *Built-in Access MDB file creation and compression functions on > Windows* > > Simply try pypyodbc: > > import pypyodbc > > pypyodbc.win_create_mdb('D:\\database.mdb') > > connection =3D pypyodbc.connect('Driver=3D{Microsoft Access Driver (*.mdb= )};DBQ=3DD:\\database.mdb') > > SQL =3D 'CREATE TABLE saleout (id COUNTER PRIMARY KEY,product_name VARCHA= R(25))' > > connection.cursor().execute(SQL) > > > Home Page > > Tutorial > > =E6=95=99=E7=A8=8B > > Tutorial (Fran=C3=A7ais) > > > --bcaec555513c22e0e404d63bbda2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

PyPyODBC, the single script Pyth= on ODBC module, now runs under both Python 2.x and Python 3.3


PyPyODBC - A Pure Python ctypes ODBC module

Features

  • One pure Python script, runs on C= Python /=C2=A0IronPython=C2=A0/=C2=A0<= a href=3D"http://pypy.org/" rel=3D"nofollow" style=3D"color:rgb(0,0,204)" t= arget=3D"_blank">PyPy=C2=A0, Version 2.4 / 2.5 / 2.6 / 2.7 , Win / Linu= x , 32 / 64 bit
  • Almost totally same usage as=C2= =A0pyodbc=C2=A0( can be seen = as a re-implementation of pyodbc in pure Python )
  • Simple - the whole module is impl= emented in a single python script with less than=C2=A03000 lines
  • Built-in Access MDB file creation= and compression functions on Windows

Simply try pypyodbc:

import pypyodbc 
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
pypyodbc
.win_create_mdb('D:\\data= base.mdb')

connection
=3D= pypyodbc.connect<= /span>('Driver=3D{Microsoft Access Driver (*.mdb)};DBQ=3DD:\\databa= se.mdb')

SQL
=3D 'CREATE TABLE saleout (id COUNTER P= RIMARY KEY,product_name VARCHAR(25))'

connection
.cur= sor().execute(SQL)




--bcaec555513c22e0e404d63bbda2--