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

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.2
File Size Uploaded Provenance Actions
wikibaseintegrator-0.14.2.tar.gz 173.8 kB With provenance Details for wikibaseintegrator-0.14.2.tar.gz

Built distribution (wheel)

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

Total release size: 299.9 kB

Release files / wikibaseintegrator-0.14.2.tar.gz

Download URL wikibaseintegrator-0.14.2.tar.gz
Size 173.8 kB
Tags Source
SHA-256 checksum
How to use checksums
78e570cf0e223dc3d79052a63f0d63cc66fb5f57f2bd6dd0f26cd3e840bd8fdb
BLAKE2b-256 checksum
How to use checksums
409ad0355744db3a7af9d5bdceec93d25d444fa7f3e4308316c8edd94c21cbbf
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 1, 2026.

Transparency log

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

Download URL wikibaseintegrator-0.14.2-py3-none-any.whl
Size 126.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30712a2e25bc7b938872b65f257d16b0687ebdb4efbee4e0159231aa8bc77aac
BLAKE2b-256 checksum
How to use checksums
5e778efcc6649cae8633fc32815d62727617b3fd9f967794da3c2e8c6115a31a
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 1, 2026.

Transparency log

Security for WikibaseIntegrator 0.14.2

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wikibaseintegrator-0.14.2.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 1, 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.2 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