Skip to main content

Wikibase Integrator

PyPi Python pytest Coverage Python Code Quality and Lint CodeQL Pyversions Documentation

WikibaseIntegrator is a Python library to read and write the data of a Wikibase instance, like Wikidata: items, properties, lexemes and MediaInfo entities, with their labels, claims, qualifiers and references, through the MediaWiki API and the SPARQL endpoint. Its "fast run" mode compares your data with the SPARQL endpoint and only writes what actually changed.

Installation

python -m pip install wikibaseintegrator

Python 3.11.5 or newer is required.

Quick example

from wikibaseintegrator import WikibaseIntegrator
from wikibaseintegrator.wbi_config import config

# Wikimedia asks every tool to identify itself: https://foundation.wikimedia.org/wiki/Policy:User-Agent_policy
config['USER_AGENT'] = 'MyTool/1.0 (https://www.wikidata.org/wiki/User:MyUsername)'

wbi = WikibaseIntegrator()
item = wbi.item.get('Q582')
print(item.labels.get('en'))  # Villeurbanne

To log in and write, see Login and Entities.

Documentation

The documentation is on GitHub Pages, for the latest release and for the development version:

Upgrading from an older version (v0.13, v0.12, v0.11)? See the breaking changes.

Contributing

See Contributing to set up the development environment and run the tests.

WikibaseIntegrator is a fork of WikidataIntegrator, see About. To port a WikidataIntegrator script, see the migration guide.

Metadata

Release files for WikibaseIntegrator 0.15.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for WikibaseIntegrator 0.15.0
File Size Uploaded Provenance Actions
wikibaseintegrator-0.15.0.tar.gz 231.5 kB With provenance Details for wikibaseintegrator-0.15.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for WikibaseIntegrator 0.15.0
File Interpreter ABI Platform Actions
wikibaseintegrator-0.15.0-py3-none-any.whl Python 3 none any Details for wikibaseintegrator-0.15.0-py3-none-any.whl

Total release size: 378.1 kB

Release files / wikibaseintegrator-0.15.0.tar.gz

Download URL wikibaseintegrator-0.15.0.tar.gz
Size 231.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4a3a0405f7ae5d5010d7339e4102cb0e9acbbbd4a79451bcb9d8ed65b98a7338
BLAKE2b-256 checksum
How to use checksums
9b0f282c2edc9117ff20f6c88fa17b92dabf198f93472d1cd12b3c2604b8acfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / wikibaseintegrator-0.15.0-py3-none-any.whl

Download URL wikibaseintegrator-0.15.0-py3-none-any.whl
Size 146.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74c31f6deef847c79d6785bf8ed753bd91ca34dd2ef45ecc0c5f2f104ab89d98
BLAKE2b-256 checksum
How to use checksums
55d5b5e285b74c8aa7081d3865a5dc9a563053185db651d0c93ed7f1317e6c84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for WikibaseIntegrator 0.15.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wikibaseintegrator-0.15.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.15.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page