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.8.1.tar.gz
(26.1 kB
view details)
Built Distribution
Wikidata-0.8.1-py3-none-any.whl
(29.1 kB
view details)
File details
Details for the file Wikidata-0.8.1.tar.gz
.
File metadata
- Download URL: Wikidata-0.8.1.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d44aa538ca3bcbc36ddf9f88957f6e487407d96e7a8a7bcee39da472b90f28b |
|
MD5 | fe74b7599b33d59b2ca20b1697a8bcf3 |
|
BLAKE2b-256 | f561b8c6f83737e02dd4098a33fca84a517d6583a1bf2755ac9e1adb4ec5c8b6 |
File details
Details for the file Wikidata-0.8.1-py3-none-any.whl
.
File metadata
- Download URL: Wikidata-0.8.1-py3-none-any.whl
- Upload date:
- Size: 29.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f0e2b8b77150cb374a729f3b4fbadbfedfbd091e1f25d08f5403cb0d8306cda |
|
MD5 | a3432397b7123b579a57b5e15a625dc0 |
|
BLAKE2b-256 | 3904000f4b830f0a14a56d2fe1fea43e67b7f7ea561e7cca8d9b57f48157ec4c |