Easy to use PySMB wrapper library
Project description
This library wraps around the pysmb library
from easypysmb import EasyPySMB
# Connect
e = EasyPySMB(
'smbserver.example.com',
domain='example.com',
username='me',
password='PassW0rd'
)
# List files
e.ls('share1/')
# Store files
e.store_file('/tmp/test.txt', 'share1/test.txt')
# Retrieve files
f = e.retrieve_file('share1/text.txt')
# Backup files
e.backup_file('share1/text.txt', 'share2/test.backup.txt')
# mkdir -p
e.mkdir('share1/dir1/dir2/dir3')
# Terminate connection
e.close()
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
easypysmb-1.4.4.tar.gz
(3.9 kB
view hashes)
Built Distribution
easypysmb-1.4.4-py3-none-any.whl
(16.3 kB
view hashes)
Close
Hashes for easypysmb-1.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d40393378ccc9c2ae1b66eea1982d7c4076675028ddede6ece3849c5dda15ac7 |
|
MD5 | b88311eba6713b5103ae2d776a8b551c |
|
BLAKE2b-256 | 03418dd9908caeabecadd9b23dbc5b1ae506c087e53ecac53d71780ef5eec572 |