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.7

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

Built distribution (wheel)

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

Total release size: 12.6 kB

Release files / mountvfs-0.1.7.tar.gz

Download URL mountvfs-0.1.7.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
182e46e700ffd3a9952f09e5057762e7f1bb5f0389d9c201e5757a35e6918703
BLAKE2b-256 checksum
How to use checksums
81e5edccb116305152823d1c23fd70908e81b8c0e4feeff0858503a157ca3164
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.7-py3-none-any.whl

Download URL mountvfs-0.1.7-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3265953119fa7048fcd16422ac88e285875b9bcfdc75edf45a6e706342a347ae
BLAKE2b-256 checksum
How to use checksums
5ae6c90cf4334bdf1f0155d0e94b876825f97161ec810d8375eebd76d26580d2
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.7

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