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.0.tar.gz
(12.7 kB
view details)
Built Distribution
Wikidata-0.6.0-py3-none-any.whl
(16.0 kB
view details)
File details
Details for the file Wikidata-0.6.0.tar.gz
.
File metadata
- Download URL: Wikidata-0.6.0.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8553e6f33e0bf4480c02febb10647c3222942c31ddabaa9023ea72f6d2c774f0 |
|
MD5 | d8b00cd3ace8e41ca89e44e3b6a690fb |
|
BLAKE2b-256 | bbcef1a3e80c8ba0f2e60a222f542555551ae06480daee59908039597d77231a |
File details
Details for the file Wikidata-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: Wikidata-0.6.0-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 308865373a57b7dafe48c2a0666f6644b1398cf34ad7cddd9c29cd0e153ffe59 |
|
MD5 | 00e91755f8e06ec09a05ab5321a4158f |
|
BLAKE2b-256 | 97e63867c9a99718b790b7b41690ac2653d05b4bf5af85b1f060ab73a44989af |