Very simple ODBC client shell. It uses pyodbc, prettytable and cmd.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Very simple ODBC client shell.

Dependencies are:

  • prettytable
  • cmd
  • pyodbc


~/DEV/pyodbc-cli$ python "DSN=database; user=admin; password=12345"

(Cmd) SELECT 1 AS Number, 'abcde' AS String;

| Number | String |
|   1    | abcde  |


Main motivation to do this tiny odbc client is that unixodbc's isql sucks. It couldn't even parse a SQL script with comments and multiline SQL queries. Since pyodbc takes care of that, this script can handle common SQL scripts with comments and multiline queries. Just use it like this:

cat script.sql | python "DSN=database; user=admin; password=12345"

This project is a toy compared to odbcshell: