Registry / http-networking / pysmbclient

pysmbclient

JSON →
library0.1.5pypypi✓ verified 84d ago

PySMBClient is a convenient wrapper around smbclient for accessing SMB/CIFS shares. Version 0.1.5 is the latest release, but the library appears to be in maintenance mode with infrequent updates.

pip install pysmbclient
INSTALL
IMPORT
SIG · PYSMBCLIENT
P
pysmbclient
http-networkingpythonv0.1.5
Install
2.5s avg
Import
—
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.1.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.2MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 2.5s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SambaClient
✓ from smbclient import SambaClient
✗ from smbclient import PySMBClient

Basic file read from an SMB share. Note: register() must be called before operations.

from smbclient import PySMBClient, register import os register(username='user', password='pass') with PySMBClient() as client: with client.open('smb://server/share/file.txt', mode='r') as f: print(f.read())
Debug
Known issues
gotchaThe library uses the module name 'smbclient', not 'pysmbclient'. Importing 'pysmbclient' directly will raise ModuleNotFoundError.
fix
Use 'from smbclient import PySMBClient' instead of 'from pysmbclient import PySMBClient'.
affects: all
deprecatedSMB protocol versions older than SMB2 may not be supported. The library relies on system smbclient which may have version restrictions.
fix
Ensure your SMB server supports SMB2+; consider using pysmb or smbprotocol for legacy SMB1.
affects: >=0.1.4
gotchaAuthentication must be registered before any connection. Calling register() after opening a client can cause 'Operation not permitted' errors.
fix
Always call register() before instantiating PySMBClient.
affects: all
Upgrade
Version history
0.1.5latest on PyPI · released Mar 3, 2017
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
pysmbclient — pip install pysmbclient · libregistry