SSHFS, NFS clients.
Project description
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'))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mountvfs-0.1.7.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file mountvfs-0.1.7.tar.gz
.
File metadata
- Download URL: mountvfs-0.1.7.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 182e46e700ffd3a9952f09e5057762e7f1bb5f0389d9c201e5757a35e6918703 |
|
MD5 | b3b71a89cbd32df4be7f536a2d9ecb97 |
|
BLAKE2b-256 | 81e5edccb116305152823d1c23fd70908e81b8c0e4feeff0858503a157ca3164 |
File details
Details for the file mountvfs-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: mountvfs-0.1.7-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3265953119fa7048fcd16422ac88e285875b9bcfdc75edf45a6e706342a347ae |
|
MD5 | 0106b20c73b8ff219270c92dd8232215 |
|
BLAKE2b-256 | 5ae6c90cf4334bdf1f0155d0e94b876825f97161ec810d8375eebd76d26580d2 |