Skip to main content

wikibase-api

wikibase-api is a Python library for simple access to the Wikibase API. It simplifies the authentication process and can be used to query and edit information on Wikidata or any other Wikibase instance.

For an simpler, object-oriented abstraction of the Wikibase API, have a look at python-wikibase.

Installation

pip install wikibase-api

Usage

Simple example for getting all information about a Wikidata page:

from wikibase_api import Wikibase

wb = Wikibase()
r = wb.entity.get("Q1")
print(r)

Output:

{
  "entities": {
    "Q1": {
      # ...
    }
  },
  "success": 1,
}

Documentation

→ Docs

The documentation for this library can be built using the following commands (you'll need to have Python, Make and Poetry installed):

git clone REPO_URL
make install
make docs-build
make docs-open

Release files for wikibase-api 0.1.1

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

Source distribution (sdist)

Source distribution for wikibase-api 0.1.1
File Size Uploaded
wikibase-api-0.1.1.tar.gz 27.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wikibase-api 0.1.1
File Interpreter ABI Platform
wikibase_api-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 60.2 kB

Release files / wikibase-api-0.1.1.tar.gz

Download URL wikibase-api-0.1.1.tar.gz
Size 27.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e1af2656aee9e398617ff17dc46f0796bc83a59babce8c0865c349cea91a39f8
BLAKE2b-256 checksum
How to use checksums
6307c975eacb1887116a5cbb187f129588c5e7398ccec2d6fb8f503e72568ab6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.16 CPython/3.7.0 Darwin/18.6.0

Release files / wikibase_api-0.1.1-py3-none-any.whl

Download URL wikibase_api-0.1.1-py3-none-any.whl
Size 33.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c877b3a76c6ed7f451d5ff06f16094717cd4d0451713fa70387deb84a059365a
BLAKE2b-256 checksum
How to use checksums
3ca0dff3fadd82b5cf2919b76a1da0cdea1951101102f9ea88ca78fd31db12e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.16 CPython/3.7.0 Darwin/18.6.0

Release history Release notifications | RSS feed

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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