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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: acdh-wikidata-pyutils-0.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.1.tar.gz
Algorithm Hash digest
SHA256 4ee109d3d055f2afc526826b6ab2e5910f80e689a225cf3928de465928167231
MD5 cecea592d7668a8680036f74d363c728
BLAKE2b-256 dbb453a4bd824e3ce9c1304afa3945fa784bb795f9bfa38f2528941241763890

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for acdh_wikidata_pyutils-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3a4e7769c02385ba68b8288543fb42e1633e149ecc00142e98a7b76ff2c42a6
MD5 4d0f9fd68dc93ff6677481a53c6cc180
BLAKE2b-256 d42e8868f3db94dddf82c3869cc2bfecd074262a3490585912c66e9fdf34e1d9

See more details on using hashes here.

Supported by

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