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

Metadata

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 Provenance Actions
wikibase-api-0.1.1.tar.gz 27.1 kB Without provenance Details for wikibase-api-0.1.1.tar.gz

Built distribution (wheel)

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

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

Security for wikibase-api 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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