I’ve read about using sqlalchemywithin the pylons framework.
How will things work if I need it for a simple script file?
I have like importer.py that is spidering a site and I want to save to mysql.
If things are in a single file, can I still using sqlalchemy?
How do I setup my model/mappings then?
Yes, SQLAlchemy does not impose any restrictions on the way you use it.
You can see example on single-script initialization here: http://www.sqlalchemy.org/trac/attachment/ticket/1328/sqlalchemy-bug-query_Employee_company.py