Wikidata client library
Project description
This package provides easy APIs to use Wikidata for Python.
>>> 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.3.0.tar.gz
(10.4 kB
view details)
Built Distribution
Wikidata-0.3.0-py3-none-any.whl
(13.1 kB
view details)
File details
Details for the file Wikidata-0.3.0.tar.gz
.
File metadata
- Download URL: Wikidata-0.3.0.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 283fbcaade05a748fee222bdf355296881013f47aa274b4be15b9f37dc5c9e77 |
|
MD5 | 30eb5b0cd23f30570077768c9b6b6aff |
|
BLAKE2b-256 | e6881cc69f18af0f3a6ee8eed63344a1991b7bc067084144560259ed5cedbdf5 |
File details
Details for the file Wikidata-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: Wikidata-0.3.0-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08a7ce5c38482b3507b563fabf63f193be989aa08a892131feb5ab590335241a |
|
MD5 | 10ab1e56b30732903ac9acd8cf1bd93f |
|
BLAKE2b-256 | 10b0110d54b05d2bad5a1ebe5ccbd0a7d13902cef0b6ce5484ce1bd35bf22f74 |