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 Provenance Actions
mountvfs-0.1.6.tar.gz 3.6 kB Without provenance Details for mountvfs-0.1.6.tar.gz

Built distribution (wheel)

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

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

Security for mountvfs 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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