easypysmb-1.4.4
توضیحات
Easy to use PySMB wrapper library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | easypysmb-1.4.4 |
| نام | easypysmb |
| نسخه کتابخانه | 1.4.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Philipp Schmitt |
| ایمیل نویسنده | philipp@schmitt.co |
| آدرس صفحه اصلی | https://github.com/pschmitt/easypysmb |
| آدرس اینترنتی | https://pypi.org/project/easypysmb/ |
| مجوز | GPL3 |
easysmb
============
This library wraps around the pysmb library
.. code-block::
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()
نیازمندی
| مقدار | نام |
|---|---|
| - | pysmb |
نحوه نصب
نصب پکیج whl easypysmb-1.4.4:
pip install easypysmb-1.4.4.whl
نصب پکیج tar.gz easypysmb-1.4.4:
pip install easypysmb-1.4.4.tar.gz