unitpackage.remote

Utilities to work with remote data packages.

unitpackage.remote.collect_datapackages(data=None, url='https://github.com/echemdb/electrochemistry-data/releases/download/0.3.2/data-0.3.2.zip', outdir=None)

Return a list of data packages defined in a remote location.

The default is to download the packages currently available on echemdb which are retrieved from the echemdb electrochemistry-data repository and extract them to a temporary directory.

To retrieve data from a subdirectory within the zip, provide the location in data.

EXAMPLES:

>>> packages = collect_datapackages()  
unitpackage.remote.collect_zipfile_from_url(url='https://github.com/echemdb/electrochemistry-data/releases/download/0.3.2/data-0.3.2.zip')

Download a ZIP file from url and return it as a temporary object to extract contents from.