DRB fuse implementation
Project description
Drb Fuse Representation
This drb-fuse module implements a representation of DrbNode as a field system. It is able to navigates among the DrbNode contents.
FsNode
FsNode is the node that implement the Fuse representation of a node.
An example that represent a xml node from the file test.xml on directory /tmp/hello/:
Create a FsNode with argument 'node' and 'mountpoint' And after sets up a fuse file system that represent the node. The directory pointed by 'mountpoint' must exist
from multiprocessing import Process
from drb.drivers.file import DrbFileFactory
from drb.fuse import FsNode
xml_file = "files" / "test.xml"
node_file = DrbFileFactory().create(xml_file)
fsnode = FsNode(node_file, '/tmp/hello/')
process_fs = Process(target=fsnode.run_fs(),
kwargs={'node': node, 'mountpoint': '/tmp/hello/'}
Same example with functions start_fs: The function start_fs create the directory if the directory not exists And create an instance of FsNode with 'node' and 'mountpoint' and launch the method 'run_fs()' from the instance of FsNode
from multiprocessing import Process
from drb.drivers.file import DrbFileFactory
from drb.fuse import FsNode
from drb.fuse.drb_fuse3 import start_fs
xml_file = "files" / "test.xml"
node_file = DrbFileFactory().create(xml_file)
process_fs = Process(target=start_fs,
kwargs={'node': node, 'mountpoint': '/tmp/hello/'}
Using this module
To include this module into your project, the drb-fuse
module shall be referenced into requirement.txt
file, or
the following pip line can be run:
pip install drb-fuse
The fuse3 library have to be installed
For ubuntu the following command line can be run:
sudo apt install fuse3 libfuse3-dev
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file drb-fuse-1.0.0.tar.gz
.
File metadata
- Download URL: drb-fuse-1.0.0.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/6.0.0 pkginfo/1.9.6 requests/2.27.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f857d34949d60bfe9c95a52ce3571f8f114b19685889214f79f77992d278a1bd |
|
MD5 | 2e224d10dfb398e4ec826f7bd24a0717 |
|
BLAKE2b-256 | 5af48642a4b4f12386c2d0d250fbc5dfb39fb6ec837ac4a5744f430c290c936c |
File details
Details for the file drb_fuse-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: drb_fuse-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/6.0.0 pkginfo/1.9.6 requests/2.27.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca05e1378bfbf09bd9876dac8427b8f590efa1b8bce46db7d1a25f88778726a1 |
|
MD5 | a13151e8c2635eec6cfbbc4cd3f8da08 |
|
BLAKE2b-256 | 922eaa2810af1c78bbd92d33e5b7ca8d7727025e5a2c609da89cca071705889e |