DataLad FUSE extension package
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datalad-fuse-0.4.1.tar.gz.
File metadata
- Download URL: datalad-fuse-0.4.1.tar.gz
- Upload date:
- Size: 52.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ec62f07f62e3c7521ac1bc84bfbe28f113e024d236c7130bc7c4a302f151954
|
|
| MD5 |
5dae84e7c39a686e7eb4de8328dfa75e
|
|
| BLAKE2b-256 |
c2fb33db1252758353c47bc4ef0ac01a367cf7cf49521ad1f6b742f1abdff533
|
File details
Details for the file datalad_fuse-0.4.1-py3-none-any.whl.
File metadata
- Download URL: datalad_fuse-0.4.1-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60e730dd6fa235d1457f13f7ff7418dc90a1789e7b2a892e0bc4765869533a5c
|
|
| MD5 |
bb6b9d2777262f2c284cadfd46b9bb21
|
|
| BLAKE2b-256 |
9898c223b3689bbb31c5274b9f7401a5d716a4e4c75bcbb6135b7107f3af783d
|