Skip to main content

🗃️ DaGet

Simple utility to download datasets from data respositories.

The goal of this project is to explore machine readable metadata and learn more about writing python packages.

⚠️ script is in early development and needs testing ⚠️

Installation

PyPI

to install daget using pip:

pip install daget

Usage

Download dataset via DOI or landing page url:

daget https://doi.org/10.5878/10.5878/z8wq-5q93 ./destination

or short form doi:

daget 10.5878/10.5878/z8wq-5q93 ./destination

Example

$ daget 10.7910/DVN/LFH4H8 ./test
destination:   /home/user/test
landing page:  https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/LFH4H8
 355.4KiB  Annex.pdf
 115.6KiB  List of items for measuring conceptions of democracy.csv
 81.1KiB  List of items for measuring conceptions of democracy.xlsx
 11.5KiB  Script - Part 1 Conceptions of democracy.R
 3.0KiB  Script - Part 2 Analyze items used to measure conceptions of democracy.R
 73.3KiB  Spreadsheet - Conceptions of democracy 10-2021.csv
 64.9KiB  Spreadsheet - Conceptions of democracy 10-2021.xlsx
 704.8KiB  downloaded 

Use in a python script

import daget

# download into an empty or new directory, returns the file list (with local 'path')
files = daget.download("10.7910/DVN/LFH4H8", "./destination")

# only list the files, nothing is downloaded
files = daget.list_files("10.7910/DVN/LFH4H8")  # [{'name', 'url', 'size'}, ...]

Supported data respositories with file metadata

Alternatives

Improve the script

Adding suport for additional repositories requires test cases and investigation arround how to get file metadata from the landing page.

Please help by testing and reporting issues

Development

  • Check out this repository and open a terminal in this directory
  • Install dependecies: pip install pyproject.toml
  • Run the module without installing it: python3 -m daget

TODO

  • Add error handling
  • Check empty destination directory
  • Improve documentation
  • Package script for pip

Metadata

Release files for daget 0.8

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

Source distribution (sdist)

Source distribution for daget 0.8
File Size Uploaded
daget-0.8.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for daget 0.8
File Interpreter ABI Platform
daget-0.8-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / daget-0.8.tar.gz

Download URL daget-0.8.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c0f7af8441881e796ba9974c43166353aae004633f6c1fac658cee11c021b16c
BLAKE2b-256 checksum
How to use checksums
0514e0a2640258079ec95f5d07af75371b0fc36e0e683056d03286ef7581300a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / daget-0.8-py3-none-any.whl

Download URL daget-0.8-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79f1be70b5ddb5c7aef2e42166b6a29b447e37e91c34dbd0482a126ac40ffeba
BLAKE2b-256 checksum
How to use checksums
fac5e7bd13cec2378fbe431e751e9cf3fa407e2a18f30d9690d54583c8ec9495
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.8 This release

2 release files

0.7

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

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