fdb is a Python driver for the Firebird relational database, implementing the Python DB-API 2.0 specification. While its PyPI summary refers to it as a "Legacy Python driver for Firebird 2.5", it continues to be actively maintained with recent releases (v2.0.4) fixing compatibility issues up to Python 3.13. It primarily interacts with Firebird via the native client library. The project has an active, though not rapid, release cadence, with updates addressing bugs and modern Python compatibility.
pip install fdbVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to establish a connection to a Firebird database, execute a simple query to list user-defined tables, and fetch the results using the `fdb` driver. It includes basic error handling and uses environment variables for sensitive connection details, which should be replaced with actual values or more secure methods in production.
Download and install the appropriate Firebird client package for your operating system and architecture from the official FirebirdSQL website. Ensure its installation directory is added to your system's dynamic linker search paths.
Consult the FirebirdSQL documentation for specific server versions and cross-reference with `fdb` capabilities. For critical applications, consider thoroughly testing all database interactions or exploring alternative drivers if available for newer Firebird versions.
Double-check your database path, especially on Linux/Unix systems. Ensure `user` and `password` match exactly. For the DSN, `hostname:/path/to/database.fdb` is a common format; ensure the path is correct and accessible by the Firebird server.
Install the correct Firebird client library for your OS/architecture. Ensure the library's directory is in your system's PATH (Windows) or LD_LIBRARY_PATH (Linux) or other relevant linker paths.
Verify that the Firebird server service is running. Check your firewall settings. Confirm the database file path in your DSN is correct and the file exists on the server machine.
Always provide valid `user` and `password` arguments to `fdb.connect()`. Common defaults are `user='sysdba', password='masterkey'` (case-sensitive) for initial setup, but these should be changed for production.
No dependency data recorded yet.