new site methods: - has_image_repository returns True if site has a shared image repository like commons - has_data_repository returns True if site has a shared data repository like wikidata - image_repository() returns the image repository site object i.e. commons - data_repository() returns the data repository site object i.e. wikidata Both repository methods returns None if no repository is assigned to a site. Now there is only one wikidata client ("wikidata:client") and it's repository is "wikidata:repo"
new site methods:
- has_image_repository returns True if site has a shared image repository like commons
- has_data_repository returns True if site has a shared data repository like wikidata
- image_repository() returns the image repository site object i.e. commons
- data_repository() returns the data repository site object i.e. wikidata
Both repository methods returns None if no repository is assigned to a site.
Now there is only one wikidata client ("wikidata:client") and it's repository is "wikidata:repo"

pywikibot/core-migration-example