"Now it works with the help of PYODBC"..... here's how to do a DSN-less connection. Not too hard...
Assume> dbsrv17 -n demo17 "C:\\Users\\Public\\Documents\\SQL Anywhere 17\\Samples\\demo.db" -n demo
!!!Code starts....
import pyodbc
connection_stri...