pywikibase is the library designed to handle DataModel of Wikibase.
It was forked from pywikibot-core in 28 July 2015.
pip install pywikibase
import pywikibot item = pywikibase.ItemPage('Q91') item.get(content=content_from_api)
Our code is maintained on Wikimedia's Gerrit installation, learn how to get started.
Credits of this code belong to pywikibot team. pywikibase and pywikibot are distributed under MIT license.