Skip to main content

Wikidata client library

Project description

Latest PyPI version Documentation Status Build Status

This package provides easy APIs to use Wikidata for Python.

>>> from wikidata.client import Client
>>> client = Client()  # doctest: +SKIP
>>> entity = client.get('Q20145', load=True)
>>> entity
<wikidata.entity.Entity Q20145 'IU'>
>>> entity.description
m'South Korean singer and actress'
>>> image_prop = client.get('P18')
>>> image = entity[image_prop]
>>> image
<wikidata.commonsmedia.File 'File:KBS "The Producers" press conference, 11 May 2015 10.jpg'>
>>> image.image_resolution
(820, 1122)
>>> image.image_url
'https://upload.wikimedia.org/wikipedia/commons/6/60/KBS_%22The_Producers%22_press_conference%2C_11_May_2015_10.jpg'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Wikidata-0.4.3.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

Wikidata-0.4.3-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file Wikidata-0.4.3.tar.gz.

File metadata

  • Download URL: Wikidata-0.4.3.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Wikidata-0.4.3.tar.gz
Algorithm Hash digest
SHA256 57ed5b22d955fb9588f495b52d4f2185d99dd46052b56c1333a3f6325c913c00
MD5 5af5b03b03594ff60936c11b4ee208b0
BLAKE2b-256 b460fcfdaa9663b18c15c5a4d071eb673d916ff8bcfa6efe9cbca42bd810788d

See more details on using hashes here.

File details

Details for the file Wikidata-0.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for Wikidata-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fcfb411cc130a4198c43023146caa87351a3b1e90c32767dcdfe176df64d5db3
MD5 a72b6a72c7ab4eb69026b8e734d249d9
BLAKE2b-256 de871e2c8aeb5b3b4f4fb6997aac5274978b1c14d64cf97bc75cb135722e795b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page