Skip to main content

Python package to fetch data from Wikidata

Project description

flake8 Lint Test codecov PyPI version


Utility package to fetch data from Wikidata


  • create virtual env python -m venv venv and activate it source venv/bin/activate
  • install dev-dependencies pip install -r requirements_dev.txt
  • install acdh-wikidata-pyutils locally pip install -e .
  • run tests coverage run -m pytest


from acdh_wikidata_pyutils import WikiDataPerson

item = WikiDataPerson("")
person = item.get_apis_entity()
# {'name': 'Schnitzler', 'first_name': 'Arthur', 'start_date_written': '1862-05-15', 'end_date_written': '1931-10-21', 'gender': 'male'}
from acdh_wikidata_pyutils import WikiDataPlace

item = WikiDataPlace("")
place = item.get_apis_entity()
# {'name': 'Linz', 'lat': 48.30583333333333, 'long': 14.286388888888888}

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

acdh-wikidata-pyutils-0.4.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

acdh_wikidata_pyutils-0.4-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page