mxODBC™ provides an easy to use, high-performance, reliable and robust Python interface to ODBC compatible databases such as MS SQL Server and MS Access, Oracle Database, IBM DB2 and Informix , Sybase ASE and Sybase Anywhere, MySQL, PostgreSQL, SAP MaxDB and many more. It is an extension to our eGenix.com mx Base Distribution.
ODBC refers to Open Database Connectivity and is the industry standard API for connecting applications to databases. In order to facilitate setting up ODBC connectivity, operating systems typically provide ODBC Managers which help set up the ODBC drivers and manage the binding of the applications against these drivers. On Windows and Mac OS X the ODBC Manager is built into the system. On Unix platforms, you can choose one of the ODBC managers unixODBC, iODBC or DataDirect, which provide the same ODBC functionality on most Unix systems.
Databases usually ship with ODBC drivers for Windows, so it's
easy to get Python connected to a database on Windows. On Linux and Mac
OS X, the situation is not as bright, but getting a lot better with the
growing popularity of these platforms. If you have trouble finding a
database driver for your platform, try the ODBC vendor list on SQLSummit.com, or have a look at our mxODBC Connect product:
If you are looking for a remote database connectivity solution for Python, you may be interested in our mxODBC Connect product, which eliminates the need to have an ODBC driver for the client side of the application. It specializes on remote database connections such as the ones you typically find in web-applications, e.g. where multiple Linux servers need to communicate with a company database running on a Windows server.
The eGenix mxODBC distribution includes the mxODBC package needed to connect Python to an ODBC manager. However, it does not include an ODBC manager or any ODBC drivers. You have to have these installed in order to be able to use mxODBC with Python.
On Windows, the situation is very simple: most databases come with ODBC drivers and register them with the Windows ODBC manager that's part of every Windows system.
Please consult the ODBC driver documentation for details on how to setup ODBC data sources. The mxODBC User Manual also includes a section on this topic and some helpful hints in case you run into problems.
On Unix, you will have to install one of the popular ODBC managers iODBC or unixODBC and then register the ODBC drivers for your database with these ODBC managers.
Linux systems usually come with at least one of these ODBC managers preinstalled. Please see the mxODBC User Manual for setup instructions.
On Mac OS X, you can use the system system ODBC manager (which is a version of the popular iODBC manager).
Please see the mxODBC User Manual for setup instructions.
The eGenix.com mxODBC Distribution is a commercial product and made available under the terms and conditions of the eGenix.com Commercial License Agreement, Version 1.3.0 (PDF file).
When purchasing a license for the mxODBC product, you will receive a digitally signed Proof of Authorization together with a license file authorizing you to install and use the product.
mxODBC is available in different editions to meet your specific needs. Please see the mxODBC Editions section for details.If you would like to evaluate the eGenix.com mxODBC Distribution, please request an evaluation license or send an email to the eGenix.com Sales Team and include the following information: name of the licensee, number of evaluation licenses.
We will then send you the requested number of evaluation licenses for the mxODBC Professional Edition. The evaluation licenses have a built-in timeout of 30 days, but are otherwise fully functional.
If you are satisfied with the product, you can then proceed to the next section.
Production licenses for the mxODBC product can be bought via our eGenix.com Online Shop. Licenses are sold per Python installation. If you are installing the product on a shared server which is accessible over a network, then you have to purchase a separate license for each machine that can access the installation via this server.
For prices and volume discounts please check the mxODBC License Shop Page. We also offer site and corporate licenses. Please write to sales@egenix.com for quotes on these.
After purchase, you will receive the necessary license files from eGenix.com within two business by email to the shipping address you specified in the ordering process.
If you need to buy licenses for third parties (e.g. as contractor or reseller), please consult sales@egenix.com for instructions.
If you have questions about the ordering process, or the needed number of licenses, please write to the eGenix.com Sales Team.
mxODBC licenses are available in different editions to meet your specific needs:
Feature |
Standard Edition for ... |
Professional Edition |
|||
MS SQL Server |
Oracle |
IBM DB2 |
Sybase ASE |
||
SQL Server Support |
|
||||
Oracle Support |
|||||
DB2 Support |
|||||
Sybase ASE Support |
|||||
Teradata Support |
|||||
Netezza Support |
|||||
MySQL Support |
|||||
PostgreSQL Support |
|||||
MaxDB Support |
|||||
MS Access Support |
|||||
Support for Other Databases |
|||||
Max. Number of Connections |
10 |
10 |
10 |
10 |
unlimited |
Number of CPUs |
1 |
1 |
1 |
1 |
1 |
The low-cost Standard Edition License allows installation of mxODBC for use in one Python installation. Depending on the edition variant, it allows working with MS SQL Server, Oracle, IBM DB2 or Sybase ASE database backends only. The maximum number of connections per process is limited to 10 connections.
If you need to connect to multiple database backends, ones which are not listed here, or have a need to more than 10 connections per process, please have a look at the Professional Edition.
This edition is ideal for users who normally only work with one specific database backend.
The Professional Edition License
allows installation of mxODBC for use
in one Python installation. There is no limitation on the database
backend or the number of open connections per process - you can benefit
from the full mxODBC functionality on all platforms.
This edition is ideal for users in more diverse environments and in situations where the number of connections should not be limited, e.g. in a web server environment.
If you are intending to upgrade from an existing mxODBC license to the new mxODBC 3.2, please contact the eGenix.com Sales Team with your existing license serials for details for an upgrade discount coupon.
We will give out 20% discount coupons for upgrade purchases going from mxODBC 2.x to 3.2 and 50% coupons for upgrades from mxODBC 3.x to 3.2. After upgrade, use of the original license from which you upgraded is no longer permitted.
Please note that upgrade coupons are not available for the low-cost standard editions.
For developers who want to integrate mxODBC into an application or product, we offer a Product Development Edition License which allows royalty-free redistribution of mxODBC as part of a product built by a developer.
Developer licenses for the mxODBC product can be bought via our eGenix.com Online Shop.
Licenses are sold per developer and product, e.g. if you have one developer
working on two products integrating mxODBC, you will need to purchase
two licenses. If you have three developers working on one product, you
will need to purchase three licenses in order to benefit from the
royalty-free distribution right.
For prices please check the mxODBC Product Development Edition License Shop Page. Volume discounts are available on request. Please contact the eGenix.com Sales Team for quotes.
If you are looking for upgrades to your existing mxODBC Developer CPU Licenses or mxODBC Product Development Edition Licenses, we will provide you with upgrade coupons. Please contact eGenix.com Sales Team with your existing license serials for details for an upgrade discount coupon.
We will give out 20% discount coupons for upgrade purchases going from mxODBC 2.x to 3.2 and 50% coupons for upgrades from mxODBC 3.x to 3.2. After upgrade, use of the original license from which you upgraded is no longer permitted.
Please note that we have changed the licensing scheme for mxODBC development licenses to a per-developer and product based one in 3.1 and later, to better meet our customer's requirements. If you have questions, please contact the eGenix.com Sales Team.
If you want to redistribute mxODBC as part of a product on a per-installation basis (rather than on a per developer and product basis), you can do so by purchasing standard or professional edition licenses in bulk and then redistribute these to your customers. For larger volumes we also have a special reseller agreement to simplify the process. Please write to the eGenix.com Sales Team for instructions and more information.
The following documentation is available for mxODBC:
mxODBC User Manual and Reference Guide - HTML and PDF
The manual includes an installation guide, a discussion of the design principles behind mxODBC, as well as a reference of the available programming interfaces.
The PDF file is also available as part of the installation and can be found in the mx/ODBC/Doc/
folder.
"Python Programming On Win32" by Mark Hammond, Andy Robinson has a section on mxODBC and mxDateTime.
A successful installation of mxODBC requires these three steps:
Redistribution of these files is not allowed. Please contact the eGenix Sales Team for details about redistribution possibilities and terms.
Please always download the correct installer for your Python version, otherwise you won't be able to install the packages.
For instructions on how to install the prebuilt distributions, please see the installation section below.
The Windows ODBC manager which comes with the Windows Operating System will be used by this distribution.
Please always download the correct installer for your Python version, otherwise you won't be able to install the packages.
For instructions on how to install the prebuilt distributions, please see the installation section below.The Windows ODBC manager which comes with the Windows Operating System will be used by this distribution.
For instructions on how to install these prebuilt distributions, please see the installation section below.
You will need to have one of popular ODBC managers for Unix installed on the target system: iODBC 3.52.x or unixODBC 2.3.x.
We have successfully tested mxODBC with iODBC 3.52.7 and unixODBC 2.3.1.
For instructions on how to install these prebuilt distributions, please see the installation section below.