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.7.0.tar.gz
(13.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
Wikidata-0.7.0-py3-none-any.whl
(29.3 kB
view details)
File details
Details for the file Wikidata-0.7.0.tar.gz.
File metadata
- Download URL: Wikidata-0.7.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32ad4cc2c695435d411c83417b1eac210baa635abaf3ff38779666012daedd47
|
|
| MD5 |
ff249be0b5a64070b88ae14d288d8eb1
|
|
| BLAKE2b-256 |
f55ecbaa3824308404281cb225eebc703527e2b4b8048b9f41ab799be4a3ca5f
|
File details
Details for the file Wikidata-0.7.0-py3-none-any.whl.
File metadata
- Download URL: Wikidata-0.7.0-py3-none-any.whl
- Upload date:
- Size: 29.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
601ce7b4133c42ca82e63b4653829c4f825eae63fe537b304a418af060c486ec
|
|
| MD5 |
f06e88ff131b05b2fcec4f9d80b06ac5
|
|
| BLAKE2b-256 |
80e107775cf5d39af11cb51a4cc54dd8b4e3f256f25977b7683d27af9e455b48
|