Skip to main content

Python package to fetch data from Wikidata

Project description

flake8 Lint Test codecov

acdh-wikidata-pyutils

Utitliy package to fetch data from Wikidata

development

  • 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

usage

from acdh_wikidata_pyutils import WikiDataPerson

item = WikiDataPerson("https://www.wikidata.org/wiki/Q44331")
person = item.get_apis_person()
print(person)
# {'name': 'Schnitzler', 'first_name': 'Arthur', 'start_date_written': '1862-05-15', 'end_date_written': '1931-10-21', 'gender': 'male'}

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.2.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

acdh_wikidata_pyutils-0.2.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file acdh-wikidata-pyutils-0.2.1.tar.gz.

File metadata

  • Download URL: acdh-wikidata-pyutils-0.2.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for acdh-wikidata-pyutils-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e19e1f9960a91155e30bd03d76b20f3003c585ff590f84d6dba4067d51649913
MD5 3cfacaf0b5ed87ca404ceb3cf88e6c49
BLAKE2b-256 3632a62c9223465418459ff0052e49522c862e752782a2756edcc219bc7dbc1a

See more details on using hashes here.

File details

Details for the file acdh_wikidata_pyutils-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for acdh_wikidata_pyutils-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c22581bf3cb8bc0e538ddf7beb0b32c623ad5598b03fa24bcd94330a9efdb3e
MD5 b91573e327f1ab0ad4347b717c20626a
BLAKE2b-256 a1fdb3aa002428be9446afdb7244bdcf9f66c82352583d6365d95dcf85ecd614

See more details on using hashes here.

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