Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Python module to access Advantage Database Server?

As the title suggest, I was wondering if there is a Python module that can access an Advantage Database Server (Sybase) files such as ADT and DBF.

I have searched the web and couldn't find what I'm looking for this is why I wanted to ask it here.

like image 212
b3rx Avatar asked Oct 14 '22 14:10

b3rx


2 Answers

I have used pyodbc with the Advantage ODBC driver, http://code.google.com/p/pyodbc/ and pywin32 http://sourceforge.net/projects/pywin32/ with the Advantage OLE DB provider successfully. My personal preference is the pyodbc driver.

There is now a native wrapper at http://code.google.com/p/adsdb/.

like image 185
LanceSc Avatar answered Oct 18 '22 15:10

LanceSc


dbfpy (and many other modules) let you read and write DBF files. I'm not aware of similar modules dealing with ADT files directly, but I think there are converters to make DBF files to/from ADT, if worse comes to worst.

Another alternative for accessing ADT files would be to actually run sybase advantage with its odbc driver -- if that is feasible, there are several ways to connect to an ODBC service with Python.

like image 28
Alex Martelli Avatar answered Oct 18 '22 14:10

Alex Martelli