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.6.1.tar.gz
(12.8 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.6.1-py3-none-any.whl
(16.1 kB
view details)
File details
Details for the file Wikidata-0.6.1.tar.gz.
File metadata
- Download URL: Wikidata-0.6.1.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
895753e98c3f3d8d391249c636ee7af6e7181add50d7c68094e1bad69ab7d422
|
|
| MD5 |
3028ec40ee00097834a2a1393f619e51
|
|
| BLAKE2b-256 |
8a60461dd0d04110bd55cea21bf5b3e58c3662955f5470e7ea0ea4a5542d1733
|
File details
Details for the file Wikidata-0.6.1-py3-none-any.whl.
File metadata
- Download URL: Wikidata-0.6.1-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72998341af4fc3484ae46d6f6e140334325508dcebe3ab80fe5dbe84931c9f66
|
|
| MD5 |
977baf886bdb1d9a37189bb74566d308
|
|
| BLAKE2b-256 |
27c956899314a1f30aaa1c8b0493fafaf69373aafae801b5549d3c4d29c13c52
|