Python 数据库接口模块

来源:互联网 发布:excel函数不重复数据 编辑:程序博客网 时间:2024/05/21 10:06

转自:http://wiki.woodpecker.org.cn/moin/DatabaseModules

专用数据库连接模块

MySQL

  • MySQL -- 最流行的开源数据库

  • MySQL-Python -- MySQL 的 Python 接口

    • http://dustman.net/andy/python/python-and-mysql -- MySQL-Python 作者的 Presentation

SQLite

  • SQLite -- 小巧轻便的嵌入式数据库

  • pysqlite -- SQLite 的半官方性质 Python 接口,Python 2.5 之后已成为标准库 sqlite3

    • pysqlite文档资料收集

PostgreSQL

  • PostgreSQL -- 比 MySQL 功能更强大、历史更悠久的开源数据库

    • PostgreSQL中文网

  • PyGreSQL -- 历史最悠久,最流行的 PostgreSQL 接口

  • psycopg2 -- 特别为高并发环境设计的 PostgreSQL 驱动

  • pyPgSQL -- Python世界里的另一个 PostgreSQL 接口

Oracle

  • Oracle -- 数据库领域中的巨鳄,最为强大先进的商业数据库产品

  • DCOracle2 -- Zope 出品的 Oracle 驱动

  • cx_Oracle -- 另一个 Oracle 接口模块

IBM DB2

  • pydb2 -- DB2 的 Python 接口,此外还包括了若干小工具

SAP DB

  • sapdbapi -- SAP DB 的 Python 接口

Infomix

  • informixdb

Interbase

  • kinterbasdb -- Interbase 4.0 和 5.0 的 Python接口

Ingres

  • ingmod

Sybase

  • Sybase module for Python -- Sybase 的 DB-API 2.0 接口

SQL Server

  • MicroSoft SQL Server module for Python -- SQLServer 的 DB-API 2.0 接口

  • pymssql 0.7.1 已经在 FreeBSD 5.4, 6.0, NetBSD 2.0.2, Linux with kernel 2.6, Solaris 10/x86, Mac OS X, Windows XP等多种平台上测试通过.
  • pymssql 0.7.4 经测试支持 SQL Server 2000, all service pack levels. pymssql 0.7.4 on Windows 经测试支持 SQL Server 2000 RTM, SP3a and SP4,SQL Server 2005 RTM.
  • 其他版本的SQL Server也可能被支持.
  • 在Windows平台下使用MS SQL DB-Library, 在Linux等平台使用Freetds连接SQL Server.

  • 目前常见的一些问题: 不支持SQL Server的ntext数据类型,请把ntext类型的字段修改为nvarchar.--nEO

ThinkSQL

  • ThinkSQL -- 一个内置了Python接口的商业数据库产品

Matisse

  • Matisse -- 商业数据库产品Matisse,内置 Python 绑定支持,非 DB-API兼容。

通用数据库接口模块

ODBC

  • mxODBC -- 流行的 mx 系列工具包中的一部分,也是其中唯一的商业产品(用于非商业开发不需付费)。实现了绝大部分 DB-API 2.0 接口。

  • pyodbc -- 开源的 Python ODBC 接口,完整实现了 DB-API 2.0 接口

  • ODBC Interface -- 随 PythonWin 附带发行的模块,文档和维护缺乏

JDBC

  • zxJDBC -- 专为 Jython 设计的 DB-API 2.0 接口,建立在底层的 JDBC 接口之上。已经包含在 Jython 2.1 以后的发行版中。

SQLRelay

  • SQLRelay -- Unix 环境下的通用数据库连接池,支持多种数据库和编程语言,提供了自己的 Python 接口,非 DB-API 兼容。

其它模块

Gadfly

Gadfly 是 Python 实现的一个轻型 in-memory 关系数据库,本身即提供 DB-API 兼容的访问接口。



原创粉丝点击