SQLAlchemy is a Python ORM, that could simplify the relationship of MediaWikiAnalysis with the database, and make it in fact database-type-independent.
The codebase can be found at https://github.com/MetricsGrimoire/MediaWikiAnalysis
This tasks consists on porting MediaWikiAnalysis to use high level SQLAlchemy (at the level of the ORM) instead of the current MySQLdb package. As an example, if needed for inspiration, the code of Sibyl, another MetricsGrimoire tool which already uses SQLAlchemy, can be browsed (look mainly at db.py).
$:user\> grep -r MySQLdb . ./mediawiki_analysis.py:import MySQLdb ./mediawiki_analysis.py: con = MySQLdb.Connect(host="127.0.0.1", ./test/test_mediawiki.py:import MySQLdb, os, random, string, sys, unittest ./test/test_mediawiki.py: MediaWikiTest.db = MySQLdb.connect(user=Config.db_user_out, passwd=Config.db_password_out) ./test/test_mediawiki.py: MediaWikiTest.db = MySQLdb.connect(user=Config.db_user_out, passwd=Config.db_password_out, db=Config.db_database_out) $:user\>