unitpackage.remote
Utilities to work with remote Data Packages.
- unitpackage.remote.collect_datapackages(url=None, outdir=None, data=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=None)
Download a ZIP file from
urland return it as a temporary object to extract contents from.
- unitpackage.remote.get_echemdb_database_url(version='0.5.0')
Return the URL of the database to retrieve data packages from.
By default, this is the URL of the ZIP file containing the data packages currently available on echemdb which are retrieved from the echemdb electrochemistry-data repository.