Skip to main content

A DataLad extension that simplifies access to PublicnEUro datasets

Project description

DataLad PublicnEUro extension

This repository contains a datalad extension that simplifies data download from PublicnEUro collections.

Installation

Install the extension via pip (a virtual environment is recommended):

> pip install datalad-publicneuro

Usage

The extension provides the new git annex special remote uncurl-publicneuro. To use it, activate the special remote in your DataLad dataset:

git annex initremote uncurl-publicneuro type=external externaltype=uncurl-publicneuro encryption=none

The uncurl-publicneuro special remote handles URLs with the following structure (where <dataset-id> is the PublicnEUro ID of the dataset, e.g., PN000001, and path is the absolute path of a file within the dataset, e.g., /README.txt):

publicneuro+https://<dataset-id><path>

The following command adds a reference to a file in a PublicnEUro dataset and downloads the file content (here the file /README.txt of dataset PN000001 is added with the local name README.txt):

> git annex addurl --file README.txt publicneuro+https://PN000001/README.txt

The command will prompt for credentials if no credential are available yet. After successful authentication, the file will be downloaded and added to the annex. Valid credentials will be stored in DataLad's credential store and automatically used for subsequent addurl-commands.

Contributing

See CONTRIBUTING.md if you are interested in internals or contributing to the project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datalad_publicneuro-0.0.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file datalad_publicneuro-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datalad_publicneuro-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb31f845c2962d02df565b1f09ff1409bbd844c1613d528a8739fb05c023d8e0
MD5 ae10eececfa7790e0b25ef638c1761ee
BLAKE2b-256 39f1bc2fdaab9baa0fa135bdd0d9a3d3d65d1a96c8d264eb2e0bb6fc7d0c504f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page