Re-introducing wikibase-patcher

wikibase-patcher is a Python implementation of the Wikibase REST API, the new API for Wikibase that is in use on Wikidata and hopefully on other wikis soon.

It is available here: GitHub - internetarchive/wikibase-patcher: Python library for interacting with the Wikibase REST API

It implements Python functions for each of the endpoints in the REST API, implemented in a RESTful manner (meaning the API functions don’t carry session state). On top of this, there is an Entity class, with associated methods for building items. (And in theory, properties too, though the REST API does not support property creation, and for some reason property editing results in “unexpected” errors.) The GitHub link above includes usage information.

1 Like