Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pschmitt/easypysmb
Easy to use PySMB wrapper library
https://github.com/pschmitt/easypysmb
python samba smb
Last synced: 2 months ago
JSON representation
Easy to use PySMB wrapper library
- Host: GitHub
- URL: https://github.com/pschmitt/easypysmb
- Owner: pschmitt
- License: gpl-3.0
- Created: 2016-10-05T08:33:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-27T12:09:35.000Z (3 months ago)
- Last Synced: 2024-10-13T02:09:57.401Z (3 months ago)
- Topics: python, samba, smb
- Language: Python
- Homepage: https://pypi.org/project/easypysmb/
- Size: 83 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# easysmb
![PyPI](https://img.shields.io/pypi/v/easypysmb)
![PyPI - Downloads](https://img.shields.io/pypi/dm/easypysmb)
![PyPI - License](https://img.shields.io/pypi/l/easypysmb)
![Python Lint](https://github.com/pschmitt/easypysmb/workflows/Python%20Lint/badge.svg)This library eases the use of pysmb by providing simple functions to do basic stuff.
```python
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()
```