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')
Metadata
Release files for PySmbClient 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| PySmbClient-0.1.5.tar.gz | 6.3 kB | Without provenance | Details |
Release files / PySmbClient-0.1.5.tar.gz
| Download URL | PySmbClient-0.1.5.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc528959ffe3fae5cdd2053c0d68b6dfca706d8f4ea78b9b3e741daedc87aed4
|
|
BLAKE2b-256 checksum How to use checksums |
9f811d3e94c27fd7ce8ed46ccf7260d321832b9778d283f43bdee29ea7527b0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for PySmbClient 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.