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


Groups > comp.lang.python > #24863

PyPyODBC 0.6 released! (A Pure Python ODBC module)

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <jiangwen365@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'importing': 0.04; 'true,': 0.04; 'subject:Python': 0.05; 'pypy': 0.07; 'subject:released': 0.07; 'python': 0.09; 'cursor': 0.09; 'pyodbc': 0.09; 'semantics': 0.09; 'subject:module': 0.09; '<--': 0.16; 'connect.': 0.16; 'homepage:': 0.16; 'url:py': 0.16; 'module': 0.19; 'changes': 0.20; 'import': 0.21; 'ctypes': 0.22; 'script': 0.24; 'message-id:@mail.gmail.com': 0.27; 'changes:': 0.29; 'locking': 0.29; 'received:209.85.213.174': 0.29; 'received :mail-yx0-f174.google.com': 0.29; 'url:code': 0.29; 'connection': 0.30; 'keyword': 0.30; 'url:source': 0.30; 'compatible': 0.30; 'code': 0.31; 'to:addr:python-list': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'received:209.85': 0.35; 'totally': 0.36; 'possible': 0.37; 'received:209': 0.37; 'comment': 0.38; 'some': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'provide': 0.62; 'url:p': 0.63; 'from:charset:gb2312': 0.78
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=NT9xfFgz/7Mr7nnu0OR5zFLx/kp58Fpmax0LAI61TpE=; b=q5g02UslqLnBymj8dfFrwUo4o023QornbcS0DqU5HYRv9gOsbEVzvWLoK6hk/nkNp+ jrrAwIAyeDH1N4bj0BqMhupa7KSXJmHQDjkr6ZZyEriiO7kzqhvnWH93LqmO4rsS+7rQ P+uqDa65DBhYx/ZROgLMCtapgKVSzPhaE14gi71S+1kmq/S2AJ4UbXD3IQjOdaK13iIU lHDIcuLovHBpflcOKOVezaGTrljjMrzYcdftRpA9SzYXtNrtaSUNSXxlMycdRjfbZ7Bo paMD+XIK1HhoQAg7rImP4wwQHGt1DHACwHNGsAFpaF4bT9e+/v8rXEMMRFqDM7LP22vS CVYg==
MIME-Version 1.0
Date Wed, 4 Jul 2012 22:02:59 +0800
Subject PyPyODBC 0.6 released! (A Pure Python ODBC module)
From 江文 <jiangwen365@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.1791.1341410583.4697.python-list@python.org> (permalink)
Lines 31
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1341410583 news.xs4all.nl 6872 [2001:888:2000:d::a6]:50791
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:24863

Show key headers only | View raw


PyPyODBC - A Pure Python ctypes ODBC module

Changes in version 0.6:
Added Cursor.commit() and Cursor.rollback(). It is now possible to use
only a cursor in your code instead of keeping track of a connection
and a cursor.

Added readonly keyword to connect. If set to True, SQLSetConnectAttr
SQL_ATTR_ACCESS_MODE is set to SQL_MODE_READ_ONLY. This may provide
better locking semantics or speed for some drivers.

Features
    -    Pure Python, compatible with PyPy (tested on Win32)
    -    Almost totally same usage as pyodbc

You can simply try pypyodbc in your existing pyodbc powered script
with the following changes:

               #import pyodbc                        <-- Comment out
the original pyodbc importing line
               import pypyodbc as pyodbc     # Let pypyodbc "pretend" the pyodbc
               pyodbc.connect(...)                  # This is pypyodbc
pretending pyodbc! They have same APIs!
...


Homepage:        http://code.google.com/p/pypyodbc/

Demo Script:

http://code.google.com/p/pypyodbc/source/browse/trunk/pypyodbc/test.py

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


Thread

PyPyODBC 0.6 released! (A Pure Python ODBC module) 江文 <jiangwen365@gmail.com> - 2012-07-04 22:02 +0800

csiph-web