How to use Firebird with Python?

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

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.

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:

If you have problems running KinterbasDB with Firebird 2.1, please try with this new

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-2023 unless otherwise stated in the text.

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

 Installation and setup
 Backup and restore
 Connectivity and API
 Errors and error codes