Use Pooch to handle file downloads in exampledata.py

Open
#352 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
62/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Look at exampledata.py to find where urllib is used for downloading example datasets. Read the Pooch docs (fatiando.org/pooch) for its retrieve/caching API, then replace the download logic so files are cached and optionally unzipped via Pooch. Done when the example-data tests pass and downloads work with caching in place. Note: the issue is over a year old with no comments, so confirm with maintainers it's still wanted before starting.

Written by the indexing model from the issue text.

Description

patch / enhancement priority-high

The Pooch package (https://www.fatiando.org/pooch/latest/index.html) provides some useful features for downloading files including caching, version check and unzipping. We could simplify and make more robust the exampledata module by using Pooch instead of urllib.

Dominant language
Jupyter Notebook
Stars
19
Forks
7
Avg merge
10d 11h
Merged PRs (30d)
1

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SINTEF/pyopia

All issues in SINTEF/pyopia

Similar issues

More Data Engineering issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.