Hi,
In case you're not aware, I maintain a small Python library that has some common utility functions for my Toolforge tools.
Features: * toolforge.connect('xxwiki') to easily get a database connection * toolforge.set_user_agent('mytool') to set a requests user-agent that complies with the Wikimedia User-Agent policy. * toolforge.redirect_to_https - Enforce HTTPS-only for Flask tools.
If you're already using the library, you can update to version 4.1.0 to automatically switch to the new database servers. Thanks to Bryan Davis for the patch.
Full documentation for the library is on Wikitech[1]. If you have suggestions for new features, let me know :)
[1] https://wikitech.wikimedia.org/wiki/User:Legoktm/toolforge_library
-- Legoktm