I'm a PHP guy trying out Python with cherryPy. Whenever I work with PHP I use my own simmple wrapper for mysql functions in a form of a class to make things easier to maintain. There is also PDO layer that is widely used but I never really used it in any of my projects. Do people building applications in Python using microframeworks use any kind of wrappers for MySQL instead of straight-out MySQLdb library?

有帮助吗?

解决方案

SQLAlchemy is a common choice. It can also be used as a ORM.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top