My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages
Links

pyodbc is a Python 2.x and 3.x module that allows you to use ODBC to connect to almost any database from Windows, Linux, OS/X, and more.

It implements the Python Database API Specification v2.0, but additional features have been added to simplify database programming even more.

pyodbc is licensed using an MIT license, so it is free for commercial and personal use. You can even use the source code in your own projects.

Installers for Windows are available here and most Linux distributions are starting to provide pre-compiled packages. Full source code is also available.

New to pyodbc? Check out the Getting Started page.

3.0.5 - 2012-02-23

Fixed "function sequence" errors caused by prepared SQL not being cleared ("unprepared") when a catalog function is executed.

3.0.4 - 2012-01-13

Fixed building on Python 2.5. Other versions are not affected.

3.0.3 - 2011-12-28

Update to build using gcc 4.6.2: A compiler warning was changed to an error in 4.6.2.

3.0.2 - 2011-12-26

Version 3.0.2 is the first official pyodbc release that supports both Python 2 and Python 3 (3.2+).

Many updates were made for this version, particularly around Unicode support. If you have outstanding issues from the 2.1.x line, please retest with this version.

If you are on Linux and connecting to SQL Server, you may also be interested in Microsoft's new Linux ODBC driver: http://www.microsoft.com/download/en/details.aspx?id=28160 Check your bitness - a Google search may be required ;)

If you are on Windows, there are prebuilt installers linked on the left. Most Linux distributions include pyodbc in their packages, but you may need to build your own to ensure you are using the latest. However, there is a 64-bit Fedora version RPM available on the downloads page.

Powered by Google Project Hosting