Um von Python aus auf eine Datenbank zugreifen zu können, braucht man normalerweise eine Zwischenschicht die sich um die Eigenheiten der jeweiligen Datenbank kümmert -- eine Schnittstelle also.
Es gibt viele solcher Schnittstellen zu den verschiedensten Datenbanken. Python ist damit also wunderbar geeignet, um mit Datenbanken zu arbeiten.
Hier ist eine Auflistung der bekannten Datenbanken und der zugehörigen Schnittstellen:
SQLite --> sqlite3
SQLite: http://www.sqlite.org/
sqlite3-Modul (ab Python 2.5) https://docs.python.org/2/library/sqlite3.html
PostgreSQL --> psycopg2
PostgreSQL: http://www.postgresql.org/
PostgreSQL (deutsch): http://www.postgres.de/
psycopg2: http://initd.org/tracker/psycopg/wiki/PsycopgTwo
psycopg2 (Windows Install): http://www.stickpeople.com/projects/pyt ... index.html
PostgreSQL --> py-postgresql
Für Python 3 geeignet. Reines Python oder mit optionaler C-Optimierung.
PostgreSQL: http://www.postgresql.org/
PostgreSQL (deutsch): http://www.postgres.de/
PostgresPy: http://python.projects.postgresql.org/
PostgreSQL --> PyGreSQL
PostgreSQL: http://www.postgresql.org/
PostgreSQL (deutsch): http://www.postgres.de/
PyGreSQL: http://www.pygresql.org/
PostgreSQL --> PoPy
PostgreSQL: http://www.postgresql.org/
PostgreSQL (deutsch): http://www.postgres.de/
PoPy: http://www.zope.org/Members/tm/PoPy
PoPy (SourceForge): http://sourceforge.net/projects/popy
PostgreSQL --> pg8000
Reine Python-Schnittstelle -- kein Binary notwendig.
Auch für Python 3!
PostgreSQL: http://www.postgresql.org/
PostgreSQL (deutsch): http://www.postgres.de/
gp8000: http://pybrary.net/pg8000/
PostgreSQL --> python-pgsql
PostgreSQL: http://www.postgresql.org/
PostgreSQL (deutsch): http://www.postgres.de/
python-pgsql: http://pypi.python.org/pypi/python-pgsql
PostgreSQL --> pg_proboscis
PostgreSQL: http://www.postgresql.org/
PostgreSQL (deutsch): http://www.postgres.de/
pg_proboscis:
- http://pypi.python.org/pypi/pg_proboscis/
- http://python.projects.postgresql.org/
PostgreSQL --> pyPgSQL
PostgreSQL: http://www.postgresql.org/
PostgreSQL (deutsch): http://www.postgres.de/
pyPgSQL: http://pypgsql.sourceforge.net/
MS SQL-Server --> pyMsSql:
MS SQL-Server: http://www.microsoft.com/sql/
MS SQL-Server (Wikipedia): http://de.wikipedia.org/wiki/MSSQL
pyMsSQL: http://pymssql.sourceforge.net/
Firebird / Interbase --> KInterbasDB
Firebird: http://firebirdsql.org
Interbase: http://www.interbase.com
kinterbasdb: http://kinterbasdb.sourceforge.net
Firebird --> pyfirebirdsql
Firebird: http://firebirdsql.org
pyfirebirdsql: http://github.com/nakagami/pyfirebirdsql/
pypi: http://pypi.python.org/pypi/firebirdsql/
ZODB (Zope Object Database) --> Python
ZODB: http://www.zope.org/Wikis/ZODB/FrontPage
MySQL --> mysql-python
MySQL: http://mysql.org/
mysql-python: http://sourceforge.net/projects/mysql-python/
mysql-python Website: http://mysql-python.sourceforge.net/
mysql-python DB-API-Users-Guide: http://mysql-python.sourceforge.net/MyS ... ml#mysqldb
mysql-python Präsentation: http://dustman.net/andy/python/python-and-mysql
Troubleshooting: [wiki]MySQLdb troubleshooting[/wiki]
mysql-python Windows Binaries: http://www.codegood.com/archives/4
MySQL --> oursql
MySQL: http://mysql.org/
oursql Launchpad: https://launchpad.net/oursql
oursql PyPi: http://pypi.python.org/pypi/oursql/
oursql Documentation: http://packages.python.org/oursql/
Gadfly --> Python
Gadfly: http://gadfly.sourceforge.net/gadfly.html
KirbyBase --> Python
KirbyBase: http://www.netpromi.com/kirbybase_python.html
Metakit --> Mk4py (Metakit for Python)
Metakit: http://www.equi4.com/metakit.html
Mk4py: http://www.equi4.com/metakit/python.html
PyTables --> Python
PyTables: http://www.pytables.org/
Verschiedenste Datenbanken --> ADOdb for Python
ADOdb for Python: http://phplens.com/lens/adodb/adodb-py-docs.htm
Verschiedenste Datenbanken --> Python DB-API 2.0 module for ADO
adodbapi: http://adodbapi.sourceforge.net/
ODBC (unixODBC API) --> PyODB
PyODB: http://sourceforge.net/projects/pyodb/
ODBC (Windows und Linux) --> pyodbc
pyodbc: http://code.google.com/p/pyodbc (ehemals: http://pyodbc.sourceforge.net/)
Beispiel mit Access als DB: http://www.python-forum.de/topic-12658.html
ODBC (Windows und Linux) --> ceODBC
ceODBC: http://ceodbc.sourceforge.net/
Oracle --> cx_Oracle
Oracle: http://www.oracle.com/lang/de/database/index.html
cx_Oracle: http://www.python.net/crew/atuining/cx_Oracle/
Durus --> Python
Durus: http://www.mems-exchange.org/software/durus/
SnakeSQL --> Python
SnakeSQL: http://www.pythonweb.org/projects/snakesql/index.html
IBM Informix --> InformixDB:
IBM Informix: http://www-306.ibm.com/software/data/informix/
InformixDB: http://informixdb.sourceforge.net/
IBM DB --> Python driver and DBI:
Python driver and DBI: http://pypi.python.org/pypi/ibm_db/
PyDbLite --> Python
PyDbLite: http://quentel.pierre.free.fr/PyDbLite/index.html
Schevo --> Python
Schevo: http://cheeseshop.python.org/pypi/Schevo
dbf (dBase, Foxpro, Clipper, ...) --> dbfpy
dbfpy: http://dbfpy.sourceforge.net/
Buzhug --> Python
Buzhug: http://buzhug.sourceforge.net/
CouchDB --> Json
CouchDB: http://couchdb.com/
Python library: http://pypi.python.org/pypi/CouchDB
Sybase --> python-sybase:
Sybase module for Python: http://python-sybase.sourceforge.net/
Filemaker --> fmkr.py:
Filemaker: http://www.filemaker.com/
Filemaker Modul für Python: http://www.lfd.uci.edu/~gohlke/code/fmkr.py.html
Filemaker --> PyFileMaker:
Filemaker: http://www.filemaker.com/
PyFileMaker: http://code.google.com/p/pyfilemaker/
Mongo --> pymongo
Mongo: http://www.mongodb.org/ (=document-oriented data store)
pymongo: http://github.com/mongodb/mongo-python-driver/
pymongo (pypi): http://pypi.python.org/pypi/pymongo/
pod --> Python
Pickled Object Database ("pod"): http://code.google.com/p/pickled-object-database/
dobbin --> Python
Pure-Python object database
PyPi: http://pypi.python.org/pypi/dobbin/
HBase --> PyHBase:
HBase: http://hbase.apache.org/
PyHBase: http://pypi.python.org/pypi/PyHBase/
ODBC (Windows, Linux, Mac OS, FreeBSD) --> mxODBC
mxODBC: http://www.egenix.com/products/python/mxODBC/
ODBC (Windows, Linux, Mac OS, FreeBSD) --> mxODBC Connect
mxODBC Connect: http://www.egenix.com/products/python/mxODBCConnect/
(Client-Server Version von mxODBC, nutzt die ODBC Treiber auf der Server Seite)
Redis --> redis-py
Redis: http://redis.io/ (Key-Value Store - sauschnell und super einfach)
redis-py: https://github.com/andymccurdy/redis-py
redis-py (pypi): http://pypi.python.org/pypi/redis/
Python Database Modules zu finden bei python.org: http://wiki.python.org/moin/DatabaseProgramming
Wenn du Vorschläge oder Änderungswünsche hast, dann schick mir eine PN. Ich werde mich darum kümmern.
lg
Gerold
