Python package to fetch data from Wikidata
Project description
acdh-wikidata-pyutils
Utitliy package to fetch data from Wikidata
development
- create virtual env
python -m venv venv
and activate itsource 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
Built Distribution
Close
Hashes for acdh-wikidata-pyutils-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e19e1f9960a91155e30bd03d76b20f3003c585ff590f84d6dba4067d51649913 |
|
MD5 | 3cfacaf0b5ed87ca404ceb3cf88e6c49 |
|
BLAKE2b-256 | 3632a62c9223465418459ff0052e49522c862e752782a2756edcc219bc7dbc1a |
Close
Hashes for acdh_wikidata_pyutils-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c22581bf3cb8bc0e538ddf7beb0b32c623ad5598b03fa24bcd94330a9efdb3e |
|
MD5 | b91573e327f1ab0ad4347b717c20626a |
|
BLAKE2b-256 | a1fdb3aa002428be9446afdb7244bdcf9f66c82352583d6365d95dcf85ecd614 |