How to use Firebird with Python?


To access Firebird from Python, you can use the fdb bindings:

https://pypi.python.org/pypi/fdb/

There is also an older interface called KInterbasDB, which is no longer actively developed. However, here is information about it you might find useful:

KInterbasDB is a Python extension package that implements Python Database API 2.0-compliant support for the open source relational database Firebird. In addition to the minimal feature set of the standard Python DB API, KInterbasDB also exposes nearly the entire native client API of the database engine.

http://kinterbasdb.sourceforge.net/

The package is free, covered by a permissive BSD-style license that both commercial and noncommercial users should find agreeable.

Due to the death of David Rushby, the creator of kinterbasdb, the project was dormant for some time. Since the Firebird project uses Python internally for Q&A, Pavel Cisar started a fork which will bring the driver up-to-date with latest Firebird versions. This fork is developed as a subproject of the Firebird project and it does not support InterBase anymore. Reasons for all this can be found here:

http://tech.groups.yahoo.com/group/firebird-python/message/50


If you have problems running KinterbasDB with Firebird 2.1, please try with this new __init__.py:

https://firebird.svn.sourceforge.net/svnroot/firebird/qa/trunk/kinterbasdb/__init__.py


Do you find this FAQ incorrect or incomplete? Please e-mail us what needs to be changed. To ensure quality, each change is checked by our editors (and often tested on live Firebird databases), before it enters the main FAQ database. If you desire so, the changes will be credited to your name. To learn more, visit our add content page.



All contents are copyright © 2007-2024 FirebirdFAQ.org unless otherwise stated in the text.


Links   Firebird   News   FlameRobin   Powered by FB: Home Inventory   Euchre  
Add content   About  

Categories
 Newbies
 SQL
 Installation and setup
 Backup and restore
 Performance
 Security
 Connectivity and API
 HOWTOs
 Errors and error codes
 Miscellaneous