-
Notifications
You must be signed in to change notification settings - Fork 2
Tips&Tricks
Yaroslav Halchenko edited this page Aug 23, 2021
·
1 revision
$> python3 -c 'from datalad_registry.utils import url_decode; print(url_decode("aHR0cHM6Ly9kYXRhc2V0cy5kYXRhbGFkLm9yZy9hbGxlbi1icmFpbi1vYnNlcnZhdG9yeS92aXN1YWwtY29kaW5nLW5ldXJvcGl4ZWxzL3Jhdy1kYXRhLy5naXQ="))'
https://datasets.datalad.org/allen-brain-observatory/visual-coding-neuropixels/raw-data/.git
we might want some helper command unless we RF how urls are serialized into paths (if we don't need two-way, then we could just split on ://
and then on /
and urlencode possible args; and escape fragment #
which could be present or RIA store urls, like http://store.datalad.org/)