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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ee109d3d055f2afc526826b6ab2e5910f80e689a225cf3928de465928167231 |
|
MD5 | cecea592d7668a8680036f74d363c728 |
|
BLAKE2b-256 | dbb453a4bd824e3ce9c1304afa3945fa784bb795f9bfa38f2528941241763890 |
Close
Hashes for acdh_wikidata_pyutils-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3a4e7769c02385ba68b8288543fb42e1633e149ecc00142e98a7b76ff2c42a6 |
|
MD5 | 4d0f9fd68dc93ff6677481a53c6cc180 |
|
BLAKE2b-256 | d42e8868f3db94dddf82c3869cc2bfecd074262a3490585912c66e9fdf34e1d9 |