Skip to main content

flake8 Lint Test codecov PyPI version Build the docs

acdh-wikidata-pyutils

Utility package to fetch data from Wikidata

install

pip install acdh-wikidata-pyutils

usage

from acdh_wikidata_pyutils import WikiDataPerson

item = WikiDataPerson("https://www.wikidata.org/wiki/Q44331")
person = item.get_apis_entity()
print(person)
>>> {'name': 'Schnitzler', 'first_name': 'Arthur', 'start_date_written': '1862-05-15', 'end_date_written': '1931-10-21', 'gender': 'male'}
from acdh_wikidata_pyutils import WikiDataPlace

item = WikiDataPlace("https://www.wikidata.org/wiki/Q41329")
place = item.get_apis_entity()
print(place)
>>> {'name': 'Linz', 'lat': 48.30583333333333, 'long': 14.286388888888888}
from acdh_wikidata_pyutils import fetch_image 
wiki_id = "Q2390830"
item = fetch_image(wiki_id)
print(item)
>>> "https://upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Theo._Komisarjevsky_LCCN2014715267.jpg/250px-Theo._Komisarjevsky_LCCN2014715267.jpg"

Metadata

Release files for acdh-wikidata-pyutils 3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for acdh-wikidata-pyutils 3.1
File Size Uploaded Provenance
acdh_wikidata_pyutils-3.1.tar.gz 4.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for acdh-wikidata-pyutils 3.1
File Interpreter ABI Platform
acdh_wikidata_pyutils-3.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / acdh_wikidata_pyutils-3.1.tar.gz

Download URL acdh_wikidata_pyutils-3.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
156c6adeca663d132dc46f80f844acee84e646f6a53a83560cdddd9cee202a8d
BLAKE2b-256 checksum
How to use checksums
1ed37b33b8da15ad455620b016664eaee0a5bdfbc068d9bebe44c202d6f6be8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / acdh_wikidata_pyutils-3.1-py3-none-any.whl

Download URL acdh_wikidata_pyutils-3.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66bd1b4e55c0b1f219e37e1d6fc357418c73c3688b6991b629004a26706e6749
BLAKE2b-256 checksum
How to use checksums
4309221c4908161e1142138b099db4d8da92a17e4ffff1f067eb7f957cf28a8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for acdh-wikidata-pyutils 3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page