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.4.tar.gz
(11.0 kB
view details)
Built Distribution
Wikidata-0.4.4-py3-none-any.whl
(15.7 kB
view details)
File details
Details for the file Wikidata-0.4.4.tar.gz
.
File metadata
- Download URL: Wikidata-0.4.4.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff07be86581aaca84978a48f0b2bc13f6979d0a778e347948c55d860a26a2308 |
|
MD5 | f4c294c142fb65686fed9a7b62becfe1 |
|
BLAKE2b-256 | 1449fcbdc1bb451798ce8bc41cf5f8645e0daaf398757d67d43fa413588696fe |
File details
Details for the file Wikidata-0.4.4-py3-none-any.whl
.
File metadata
- Download URL: Wikidata-0.4.4-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2e1197951554f0240ed1bd1fc2481207d93aa3404c458628ab693e5be51b315 |
|
MD5 | e82de7a1ca08c56e71a591df4b14e869 |
|
BLAKE2b-256 | aa87e856a4ac5a1479a855ae1f9bc551ac01b86c982b444b2d19b5e8b526ee45 |