SDSS Command Line Query Tool

sqlcl.py is a (very) simple Python program that can
run SQL queries against SkyServer.
Python runs on your favourite OS including the most exotic ones. The query goes
through the same .asp page that you use in the web form or using wget.