from pywikibot.version import *
print(getversion())
[https] r-pywikibot-core.git (a3e5562, g7699, 2016/12/16, 21:23:11, n/a)