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.4.0.tar.gz
(10.9 kB
view details)
Built Distribution
Wikidata-0.4.0-py3-none-any.whl
(13.7 kB
view details)
File details
Details for the file Wikidata-0.4.0.tar.gz
.
File metadata
- Download URL: Wikidata-0.4.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71087587498b005a8acca2a13f5d74ba989a8d01258b82f5ccb0970d0ab17fcc |
|
MD5 | 0af21ad8e143d84da62fdf24ca5f47a1 |
|
BLAKE2b-256 | 676b0684232d4fa40a0c1205491118887fb43c5c86c76771f2ddc9c29a7906bf |
File details
Details for the file Wikidata-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: Wikidata-0.4.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8e122eb18b88f0a4d2df1af5838e4dc046218fe8fa76a513cfdc0932286f4fe |
|
MD5 | abf2def43563f5f48c2857a2a9366e4c |
|
BLAKE2b-256 | caeda758840a790034bbe430e5992b5951104c14ad4f84bf025a9aa317c8ea04 |