Can't connect to ODBC database with pyodbc. Which SQL Server driver should I install on the Raspberry Pi?
I believe you are looking for FreeTDS or for pymssql. From pymssql docs:


  A simple database interface for Python that builds on top of FreeTDS to provide a Python DB-API (PEP-249) interface to Microsoft SQL Server.