Skip to main content

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

Metadata

Release files for drb-fuse 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drb-fuse 1.0.0
File Size Uploaded
drb-fuse-1.0.0.tar.gz 22.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for drb-fuse 1.0.0
File Interpreter ABI Platform
drb_fuse-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.2 kB

Release files / drb-fuse-1.0.0.tar.gz

Download URL drb-fuse-1.0.0.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f857d34949d60bfe9c95a52ce3571f8f114b19685889214f79f77992d278a1bd
BLAKE2b-256 checksum
How to use checksums
5af48642a4b4f12386c2d0d250fbc5dfb39fb6ec837ac4a5744f430c290c936c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / drb_fuse-1.0.0-py3-none-any.whl

Download URL drb_fuse-1.0.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca05e1378bfbf09bd9876dac8427b8f590efa1b8bce46db7d1a25f88778726a1
BLAKE2b-256 checksum
How to use checksums
922eaa2810af1c78bbd92d33e5b7ca8d7727025e5a2c609da89cca071705889e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page