Awesome Open Source
Awesome Open Source

Wikidata_ client library for Python

.. image:: :target: :alt: Latest PyPI version

.. image:: :target: :alt: Documentation Status

.. image:: :alt: Build Status :target:

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 ''

.. _Wikidata:

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (52,051
python3 (1,572
wikidata (27
ontology (24

Find Open Source By Browsing 7,000 Topics Across 59 Categories