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'
Release files for Wikidata 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wikidata-0.9.0.tar.gz | 26.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wikidata-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 70.4 kB
Release files / wikidata-0.9.0.tar.gz
| Download URL | wikidata-0.9.0.tar.gz |
|---|---|
| Size | 26.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
059e4e9574aa2a03e4327d28df8c0cc661db2826a75900cda0142bdc01b4bb7f
|
|
BLAKE2b-256 checksum How to use checksums |
c6da59fe9524010a37eafd06673f87783a7440a8cf2606ac7b214dae1ba5fa39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / wikidata-0.9.0-py3-none-any.whl
| Download URL | wikidata-0.9.0-py3-none-any.whl |
|---|---|
| Size | 44.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e908cecf9fab177393034ccac759fbdb79b9389b32b4f1a2cc556fac3a25895
|
|
BLAKE2b-256 checksum How to use checksums |
98f4101b2fa3b57641f52a7d83c103d5bb18899122299d456fc2d8783e351148
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|