Install & Compatibility
Where this runs
tested against v1.4.6 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.262s · 18.7MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.4s · import 0.240s · 19MB
17MB installed
● package 17MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
connect
✓ from firebirdsql import connect
✗ import firebirdsql; firebirdsql.connect()
Old pattern still works but is not recommended; the function is also available as firebirdsql.connect if you import the module directly.
Connect to a Firebird database and execute a simple query.
import os
from firebirdsql import connect
# Use environment variables for credentials
host = os.environ.get('FIREBIRD_HOST', 'localhost')
database = os.environ.get('FIREBIRD_DATABASE', '/path/to/database.fdb')
user = os.environ.get('FIREBIRD_USER', 'sysdba')
password = os.environ.get('FIREBIRD_PASSWORD', 'masterkey')
conn = connect(host=host, database=database, user=user, password=password)
cur = conn.cursor()
cur.execute('SELECT 1 FROM RDB$DATABASE')
print(cur.fetchone())
conn.close()
Errors
Common errors & fixes
TypeError: connect() got an unexpected keyword argument 'dsn'
Attempting to pass a DSN string directly to connect(), which does not support a single 'dsn' parameter.
fixUse individual parameters: connect(host='...', database='...', user='...', password='...')
ArgumentError: Incorrect parameter count in the command
Using %s or :named placeholders instead of ? positional placeholders for SQL parameters.
fixReplace placeholders with ?: cur.execute('SELECT * FROM users WHERE id = ?', (user_id,)) ModuleNotFoundError: No module named 'firebirdsql' after pip install
Package name is 'firebirdsql', not 'firebird' or 'fdb'. Also ensure you are using the correct Python environment.
fixInstall with: pip install firebirdsql
Upgrade
Version history
1.4.6latest on PyPI · released May 2, 2026
Audit
Dependencies
python-dateutilrequiredRequired for datetime handling
cryptographyoptionalOptional, for legacy authentication (not used in modern Firebird)