https://github.com/bfontaine/wkdfh
Wikidata for Humans
https://github.com/bfontaine/wkdfh
python-library wikidata
Last synced: about 1 year ago
JSON representation
Wikidata for Humans
- Host: GitHub
- URL: https://github.com/bfontaine/wkdfh
- Owner: bfontaine
- License: mit
- Created: 2019-04-22T19:41:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-22T19:56:08.000Z (about 7 years ago)
- Last Synced: 2025-03-23T23:43:42.288Z (about 1 year ago)
- Topics: python-library, wikidata
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Wikidata for humans
**wkdfh** is a Python module for humans who work with Wikidata.
It’s a wrapper around [`pywikibot`](https://www.mediawiki.org/wiki/Manual:Pywikibot)
that adds a couple shortcuts to ease data exploration.
**Note:** This is really experimental at this point.
## Example
```pycon
>>> import wkdfh
>>> p = wkdfh.Item("Q6756362")
>>> p.label
'Marcella Hazan'
>>> p.populate_attributes() # create attributes from the Wikidata claims
>>> p.given_name.label
'Marcella'
>>> p.family_name.label
'Hazan'
>>> p.sex_or_gender.label
'female'
>>> p.viaf_id
'79375768'
```
## Install
pip install wkdfh
Requirement: Python 3.