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 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.14.3

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.14.3
File Size Uploaded Provenance Actions
wikibaseintegrator-0.14.3.tar.gz 192.5 kB With provenance Details for wikibaseintegrator-0.14.3.tar.gz

Built distribution (wheel)

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

Total release size: 324.9 kB

Release files / wikibaseintegrator-0.14.3.tar.gz

Download URL wikibaseintegrator-0.14.3.tar.gz
Size 192.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e2500d4efce6bf34586c806ed24710afb560ae2b74732d2da87ceb4a3f63bb4f
BLAKE2b-256 checksum
How to use checksums
3869a0efcc664f1c53111ae161b0fc0ebe7b348a75b76090829f91c7eb9b9e56
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 8, 2026.

Transparency log

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

Download URL wikibaseintegrator-0.14.3-py3-none-any.whl
Size 132.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3691da019ddf8dd0ebe7b4280f56ae241c9c0fa36e60c3c9d793ee9cd0487ca
BLAKE2b-256 checksum
How to use checksums
a242d92c07c6714c3ae4a21646993dc19a797b932c85dead96465d1bfcb9fc83
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 8, 2026.

Transparency log

Security for WikibaseIntegrator 0.14.3

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.14.3.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 8, 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.14.3 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