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.3.tar.gz
(12.6 kB
view details)
Built Distribution
Wikidata-0.5.3-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file Wikidata-0.5.3.tar.gz
.
File metadata
- Download URL: Wikidata-0.5.3.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a94bc7c15315bfdd82853442977dd0e6e5abb911b797722fa08e8cbfff5db110 |
|
MD5 | e8237a2c56697e25815d69b9a3f51dca |
|
BLAKE2b-256 | b9789bb87c07463d4db111f4189bcb975dc875dc4ae99df11bb1aca855d4e853 |
File details
Details for the file Wikidata-0.5.3-py3-none-any.whl
.
File metadata
- Download URL: Wikidata-0.5.3-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 626887308aeb6168227d434faadf10a4646e7d6e6d543444673746cc473e225e |
|
MD5 | ced44ace26fd41c17ddae74506a405fa |
|
BLAKE2b-256 | 300fa2da12baa055e52b3c1069c671b63b64d8f1d4fe4bab0c9b75787a2fb95f |