Skip to content

Latest commit

 

History

435 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataDeps

CI Stable Documentation Dev Documentation

Please see the detailed documentation linked above.

Breaking Changes (1.0)

DataDeps 1.0 includes breaking changes in the download/fetch API. Downloading has been refactored to always use Downloads.download(). This removes the dependency on HTTP.jl, which is comparatively large and has had recent breaking changes.

  • fetch_base and fetch_http were removed.
  • fetch_default was removed.
  • The default fetch_method is now fetch.

These are not quite the same but are similar enough for most use cases.

Migration Guide

If your code used one of the removed fetch wrappers:

  • Replace fetch_default(remote, dir) with fetch(remote, dir).
  • Replace fetch_base(remote, dir) with fetch(remote, dir; update_period=Inf).
  • Replace fetch_http(remote, dir; update_period=...) with fetch(remote, dir; update_period=...).
  • Overload Downloads.download(::YourType) instead of Base.download(::YourType).

New Progress Callback Semantics

The built-in fetch method now supports a keyword progress_callback additional to update_period.

  • progress_callback takes a function with three arguments: (total_bytes, downloaded_bytes, filename_hint) -> <... function core ...>.
  • If progress_callback is not provided and update_period is finite, a default logging callback is used, which replaces the previous logging from HTTP.jl

Software using DataDeps.jl

It might help to look at how DataDeps.jl is being used to understand how it may be used in your project. Some of these add some additional abstraction or niceness for users on top of the DataDeps.jl core functionality.

(Feel free to submit a PR adding a link to your package, or research script here.)

Links:

Paper

White, L., Togneri, R., Liu, W., & Bennamoun, M. (2019). DataDeps. jl: Repeatable Data Setup for Reproducible Data Science. Journal of Open Research Software, 7(1).

About

reproducible data setup for reproducible science

Topics

Resources

Stars

160 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages