Skip to main content

wikidata-dl

Description

wikidata-dl is a command line program for downloading data from Wikidata based on SPARQL queries.

Installation

pip install wikidata-dl

Usage

Download result returned from the query and save it in the directory ./wikidata:

wikidata-dl /path/to/my-query.sparql

For a complete reference of the command line options run:

wikidata-dl --help

Sample Query

The following query returns IDs for all Wikidata entities that are an instance of (P31) a continent (Q5107).

SELECT ?item WHERE {
    ?item wdt:P31 wd:Q5107.
}

Try the query

Metadata

Release files for wikidata-dl 2026.10.26

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

Source distribution (sdist)

Source distribution for wikidata-dl 2026.10.26
File Size Uploaded Provenance Actions
wikidata_dl-2026.10.26.tar.gz 10.8 kB Without provenance Details for wikidata_dl-2026.10.26.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wikidata-dl 2026.10.26
File Interpreter ABI Platform Actions
wikidata_dl-2026.10.26-py3-none-any.whl Python 3 none any Details for wikidata_dl-2026.10.26-py3-none-any.whl

Total release size: 20.1 kB

Release files / wikidata_dl-2026.10.26.tar.gz

Download URL wikidata_dl-2026.10.26.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5bcf530d610081f6aaa622ff00b7da6245cc6b9c582be12eee570de287ba3217
BLAKE2b-256 checksum
How to use checksums
0d55598b521dc69653ff5656836d11e835b4432529b00c7d112939d4e52b4f18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.1 {"ci":null,"cpu":"x86_64","distro":{"id":"resolute","libc":{"lib":"glibc","version":"2.43"},"name":"Ubuntu","version":"26.04"},"implementation":{"name":"CPython","version":"3.14.4"},"installer":{"name":"hatch","version":"1.18.1"},"openssl_version":"OpenSSL 3.5.5 27 Jan 2026","python":"3.14.4","system":{"name":"Linux","release":"7.0.0-38-generic"}} HTTPX2/2.13.1

Release files / wikidata_dl-2026.10.26-py3-none-any.whl

Download URL wikidata_dl-2026.10.26-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a480ecd34951ccb70643a7e0958ef9d10251edcca936d0f060e9dfd5e138aa8
BLAKE2b-256 checksum
How to use checksums
f78cb1cd7d5a9611ac87452b8b941043338b935397d45bde3e6711138a0262a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.1 {"ci":null,"cpu":"x86_64","distro":{"id":"resolute","libc":{"lib":"glibc","version":"2.43"},"name":"Ubuntu","version":"26.04"},"implementation":{"name":"CPython","version":"3.14.4"},"installer":{"name":"hatch","version":"1.18.1"},"openssl_version":"OpenSSL 3.5.5 27 Jan 2026","python":"3.14.4","system":{"name":"Linux","release":"7.0.0-38-generic"}} HTTPX2/2.13.1

Security for wikidata-dl 2026.10.26

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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