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.6.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file mountvfs-0.1.6.tar.gz
.
File metadata
- Download URL: mountvfs-0.1.6.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 |
ee850c2ad6e6231a00228b71a7d332db14b819c2432214754d18f172bb8d7774
|
|
MD5 |
28e5feb5d6bda32d0328d5644452d1cf
|
|
BLAKE2b-256 |
1cc7a63e58f798c1ec1a8b11da21a872ebc8609cb90a50997dc2d0540d99ed90
|
File details
Details for the file mountvfs-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: mountvfs-0.1.6-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 |
4cc87469e9b9c4ee87e30f47d605c95efcc4569beaf19bb620a1d97f18e12cd5
|
|
MD5 |
2a931e8a2d08a5369481747405b7940e
|
|
BLAKE2b-256 |
8bef727aac86bc80c4a91bfd77daff89f26edb88e2ab508e976222f1d96d69c4
|