Skip to content

mh-love/easypysmb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

easysmb

PyPI PyPI - Downloads PyPI - License Python Lint

This library eases the use of pysmb by providing simple functions to do basic stuff.

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()

About

Easy to use PySMB wrapper library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%