Skip to main content

Description

For the moment there are two classes in the package: SshfsSaver and NfsSaver. They are used to write data to a remote server via passing a writing func to.save() method.

Any writing function must require a save path as its first argument, but since a saver is initialized with a target directory, there is no need to pass it in the args.

Usage example

import os
from mountvfs import Sshfs


def write(filepath, filename, text):
    with open(os.path.join(filepath, filename), 'w') as ouf:
        ouf.write(file)


MOUNT_PARAMS = {
    'user': 'test_user', 
    'server: 'test_server', 
    'remote_dir': 'path/to/mounted/remote/dir',
    'key': 'path/to/ssh/private/key',
    'target_dir': 'path/to/mounted/local/dir'
}

with Sshfs(**MOUNT_PARAMS) as saver:
     saver.save(write, args=('test_filename', 'test_text')) 

Metadata

Release files for mountvfs 0.1.6

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

Source distribution (sdist)

Source distribution for mountvfs 0.1.6
File Size Uploaded
mountvfs-0.1.6.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mountvfs 0.1.6
File Interpreter ABI Platform
mountvfs-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / mountvfs-0.1.6.tar.gz

Download URL mountvfs-0.1.6.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ee850c2ad6e6231a00228b71a7d332db14b819c2432214754d18f172bb8d7774
BLAKE2b-256 checksum
How to use checksums
1cc7a63e58f798c1ec1a8b11da21a872ebc8609cb90a50997dc2d0540d99ed90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.10

Release files / mountvfs-0.1.6-py3-none-any.whl

Download URL mountvfs-0.1.6-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4cc87469e9b9c4ee87e30f47d605c95efcc4569beaf19bb620a1d97f18e12cd5
BLAKE2b-256 checksum
How to use checksums
8bef727aac86bc80c4a91bfd77daff89f26edb88e2ab508e976222f1d96d69c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.10

Release history Release notifications | RSS feed

0.1.7

2 release files

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

1 release file

0.1.2

2 release files

0.1.1

2 release files

0.1

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