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


Groups > comp.lang.python > #15552 > unrolled thread

Working with databases (ODBC and ORMs) in Python 3.2

Started by"tkpmep@hotmail.com" <tkpmep@hotmail.com>
First post2011-11-10 10:56 -0800
Last post2011-11-10 15:35 -0500
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Working with databases (ODBC and ORMs) in Python 3.2 "tkpmep@hotmail.com" <tkpmep@hotmail.com> - 2011-11-10 10:56 -0800
    Re: Working with databases (ODBC and ORMs) in Python 3.2 Nathan Rice <nathan.alexander.rice@gmail.com> - 2011-11-10 15:35 -0500

#15552 — Working with databases (ODBC and ORMs) in Python 3.2

From"tkpmep@hotmail.com" <tkpmep@hotmail.com>
Date2011-11-10 10:56 -0800
SubjectWorking with databases (ODBC and ORMs) in Python 3.2
Message-ID<63858437-450a-4c09-979d-e35f335fd12a@cc2g2000vbb.googlegroups.com>
We are in the process of trying to decide between Python 2.7 and 3.2
with a view to making a 5-10 year commitment to the right platform,
and would appreciate some guidance on how best to connect to SQL
databases in 3.2. ceODBC 2.01 provides an ODBC driver for Python 3.2,
does anyone have experience using it? Also, are there any ORMs (object
relational mapper)s that work well with 3,2?

Thanks in advance

Thomas Philips

[toc] | [next] | [standalone]


#15558

FromNathan Rice <nathan.alexander.rice@gmail.com>
Date2011-11-10 15:35 -0500
Message-ID<mailman.2620.1320957325.27778.python-list@python.org>
In reply to#15552
For now, get started in Python 2.7.  Write code with an eye to 3.x
portability, and you will be fine.  You probably won't see 3.x
overtake 2.x for at least 3-4 years, and a decent amount of stuff is
still 2.x only.  Since it sounds like you are a windows/net shop, go
ahead and use Iron Python.

SQL Alchemy is your one stop shop.  It is basically 3.x compatible,
but see my previous statement about 3.x.  I haven't used SQL Alchemy
with SQL Server but honestly, SQL Alchemy is THE showcase python
library -- I doubt you will run into any issues.  Just google
"sqlalchemy sql server", I'm sure there's a blog post explaining the
specifics in detail.

Nathan

On Thu, Nov 10, 2011 at 1:56 PM, tkpmep@hotmail.com <tkpmep@hotmail.com> wrote:
> We are in the process of trying to decide between Python 2.7 and 3.2
> with a view to making a 5-10 year commitment to the right platform,
> and would appreciate some guidance on how best to connect to SQL
> databases in 3.2. ceODBC 2.01 provides an ODBC driver for Python 3.2,
> does anyone have experience using it? Also, are there any ORMs (object
> relational mapper)s that work well with 3,2?
>
> Thanks in advance
>
> Thomas Philips
> --
> http://mail.python.org/mailman/listinfo/python-list
>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web