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.5.4.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

Wikidata-0.5.4-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for Wikidata-0.5.4.tar.gz
Algorithm Hash digest
SHA256 22fc0ddbe610ee6a304e6c1f0bfaccf8243cce9f0ff76cc92fa4942b0d3981c5
MD5 4c79a1d7db995e5428b13622b4b503de
BLAKE2b-256 2750c78f9899d8909db1127d417bdd16b54a58a057b217fb3041f5231bccb74b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Wikidata-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3deff0a6f0f7931c8d455d715b8b58e5fbb56a17da0e3a92cf52b80c501d1ed0
MD5 9787fa4a5de92acd39f90c2207b0a307
BLAKE2b-256 4139b9ecaa1b6a80d3b3eda344c8271149c77da66ae337a9199ab28c1f6c8549

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