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 venvand 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ee109d3d055f2afc526826b6ab2e5910f80e689a225cf3928de465928167231
|
|
| MD5 |
cecea592d7668a8680036f74d363c728
|
|
| BLAKE2b-256 |
dbb453a4bd824e3ce9c1304afa3945fa784bb795f9bfa38f2528941241763890
|
File details
Details for the file acdh_wikidata_pyutils-0.1-py3-none-any.whl.
File metadata
- Download URL: acdh_wikidata_pyutils-0.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3a4e7769c02385ba68b8288543fb42e1633e149ecc00142e98a7b76ff2c42a6
|
|
| MD5 |
4d0f9fd68dc93ff6677481a53c6cc180
|
|
| BLAKE2b-256 |
d42e8868f3db94dddf82c3869cc2bfecd074262a3490585912c66e9fdf34e1d9
|