Wikidata client library
Project description
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
Release history Release notifications | RSS feed
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.1.tar.gz
(12.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
Wikidata-0.5.1-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file Wikidata-0.5.1.tar.gz.
File metadata
- Download URL: Wikidata-0.5.1.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e8b6f4ac09142970f61149e2529125d1c7d5660c9b2f43ade338a66b1fd3dd3
|
|
| MD5 |
dbf2af271e97ebe09aa19fbff829a277
|
|
| BLAKE2b-256 |
8f66191ca7a3c56af45ec3c015969639eabacfce5f182e4fa381a02dbf498e3b
|
File details
Details for the file Wikidata-0.5.1-py3-none-any.whl.
File metadata
- Download URL: Wikidata-0.5.1-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d567cbb615a12123d01d380bb127a224dc50076829ad45b4e5fc661f43d9b5a4
|
|
| MD5 |
3fab82ce19eba5d75d1c34453f7a597d
|
|
| BLAKE2b-256 |
33c045581d8d27c5f619a5462d79e6efa7c54a250da42a0c171dd81a0ca3954d
|