Python SQL Commandline

I hacked together a simple command line app in Python for running SQL using any installed DB-API driver.

Usage depends on the arguments of the connect() method of your DB driver. For example:

python psycopg "host=localhost dbname=mydb user=myuser password=mypassword"


python sqlite mysqlite.db

or with named parameters:

python pymssql --host=localhost --user=sa --password=sapassword