PySmbClient 0.1.5
pip install PySmbClient
Latest version
Released:
A convenient smbclient wrapper
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: GNU General Public License (GPL) (UNKNOWN)
- Author: nosklo
Classifiers
- Development Status
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
Python smbclient wrapper.
This is a wrapper that works by running the “smbclient” subprocess and providing an API similar to the one provided by python os module.
It is an ugly hack, but it is here for anyone that finds it useful.
The programmer before me was using a “bash” file with lots of smbclient calls, so I think my solution is at least better.
Usage example:
>>> smb = smbclient.SambaClient(server="MYSERVER", share="MYSHARE", username='foo', password='bar', domain='baz') >>> print smb.listdir("/") [u'file1.txt', u'file2.txt'] >>> f = smb.open('/file1.txt') >>> data = f.read() >>> f.close() >>> smb.rename(u'/file1.txt', u'/file1.old')
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: GNU General Public License (GPL) (UNKNOWN)
- Author: nosklo
Classifiers
- Development Status
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file PySmbClient-0.1.5.tar.gz
.
File metadata
- Download URL: PySmbClient-0.1.5.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc528959ffe3fae5cdd2053c0d68b6dfca706d8f4ea78b9b3e741daedc87aed4 |
|
MD5 | 3459c1b7195a81d9cfaecb9a7c999685 |
|
BLAKE2b-256 | 9f811d3e94c27fd7ce8ed46ccf7260d321832b9778d283f43bdee29ea7527b0e |