Python Forum

Full Version: Connection with firebird using python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys,

I am trying to make an installer for a new system using Python, among the settings I will need to add a Firebird connection in the "ODBC Data Sources (32 bit)".

After some research I came up with the following code:
import fdb

con = fdb.connect(
    host='BASEBD', database='192.000.0.000:f:\Dados central\DADOS.FDB',
    user='sysdba', password='pass'
  )
But the same one presents error and in addition I believe not to be the correct way since the code above does not include items like: client, charset and the option "read (defaut write)".

In summary, what I need to do is a connection according to the image below, but with Python (I accept other CMD / powershell suggestions, other languages):
I will be very grateful if anyone can help me