DataLad FUSE extension package
datalad-fuse provides commands for reading files in a
DataLad dataset from their remote web URLs without having
to download them in their entirety first. Instead,
fsspec is used to sparsely download
and locally cache the files as needed.
Installation
Current version of datalad-fuse requires Python 3.7 or higher. Just use
pip for Python 3 (You have pip, right?) to install it:
python3 -m pip install datalad-fuse
In addition, use of the datalad fusefs command requires FUSE to be installed;
on Debian-based systems, this can be done with:
sudo apt-get install fuse
Commands
datalad fsspec-cache-clear [<options>]
Clears the local download cache for a dataset.
Options
-
-d <DATASET>,--dataset <DATASET>— Specify the dataset to operate on. If no dataset is given, an attempt is made to identify the dataset based on the current working directory. -
-r,--recursive— Clear the caches of subdatasets as well.
datalad fsspec-head [<options>] <path>
Shows leading lines/bytes of an annexed file by fetching its data from a remote URL.
Options
-
-d <DATASET>,--dataset <DATASET>— Specify the dataset to operate on. If no dataset is given, an attempt is made to identify the dataset based on the current working directory. -
-n <INT>,--lines <INT>— How many lines to show (default: 10) -
-c <INT>,--bytes <INT>— How many bytes to show
datalad fusefs [<options>] <mount-path>
Create a read-only FUSE mount at <mount-path> that exposes the files in the
given dataset. Opening a file under the mount that is not locally present in
the dataset will cause its contents to be downloaded from the file's web URL as
needed.
When the command finishes, fsspec-cache-clear may be run depending on the
value of the datalad.fusefs.cache-clear configuration option. If it is set
to "visited", then any (sub)datasets that were accessed in the FUSE mount
will have their caches cleared; if it is instead set to "recursive", then all
(sub)datasets in the dataset being operated on will have their caches cleared.
Options
-
--allow-other— Allow all users to access files in the mount. This requires settinguser_allow_otherin/etc/fuse.conf. -
-d <DATASET>,--dataset <DATASET>— Specify the dataset to operate on. If no dataset is given, an attempt is made to identify the dataset based on the current working directory. -
-f,--foreground— Run the FUSE process in the foreground; use Ctrl-C to exit. This option is currently required. -
--mode-transparent— Expose the dataset's.gitdirectory in the mount
Release files for datalad-fuse 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| datalad-fuse-0.5.1.tar.gz | 57.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datalad_fuse-0.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 84.5 kB
Release files / datalad-fuse-0.5.1.tar.gz
| Download URL | datalad-fuse-0.5.1.tar.gz |
|---|---|
| Size | 57.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea46178e37e0b981db780a0288c829ac5099473ba36e422f2c3662a6860d4881
|
|
BLAKE2b-256 checksum How to use checksums |
baab1f1fc336a0df1320ee047644729a209a9315d05af46940fba074d21e0927
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / datalad_fuse-0.5.1-py3-none-any.whl
| Download URL | datalad_fuse-0.5.1-py3-none-any.whl |
|---|---|
| Size | 26.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2bd234646a665fd54211eaf7125b7934005ef95aec882da3a8aa9cbe74c1faa
|
|
BLAKE2b-256 checksum How to use checksums |
8c736749bde486cf7450a82b0f97d1fa9a840da407550c8b0529c53dc7d0724d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|