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 a simpler, object-oriented abstraction of the Wikibase API, have a look at python-wikibase.

Installation

pip install wikibase-api

Usage

Simple example for fetching 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,
}

See the documentation for descriptions and examples of all commands.

Development

Contributing

Suggestions and contributions are always welcome! Please discuss larger changes via issue before submitting a pull request.

Setup

See this guide on how to set up a development environment for this package.

Metadata

Release files for wikibase-api 0.1.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 wikibase-api 0.1.2
File Size Uploaded Provenance Actions
wikibase-api-0.1.2.tar.gz 27.4 kB Without provenance Details for wikibase-api-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 60.6 kB

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

Download URL wikibase-api-0.1.2.tar.gz
Size 27.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6f2c46fda17672944e5deeacd646a986dece6089a26cad89cb7b781d153de648
BLAKE2b-256 checksum
How to use checksums
7230724f438a5a9403828f43f8b18bdd344a9b39c6a41d8796dd618ce120fdd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.7.6 Darwin/19.3.0

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

Download URL wikibase_api-0.1.2-py3-none-any.whl
Size 33.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
afc9d8379fa49228d72532d9a4e93f046adb0c0e3287769b2e7917aae83f9ca3
BLAKE2b-256 checksum
How to use checksums
787197a4c81093811943ea03a29f55b2fa0c5070dd778444898672dbf5a668ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.7.6 Darwin/19.3.0

Security for wikibase-api 0.1.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.

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