Pysmb is an experimental SMB/CIFS library written in Python.
Modules
smb - Contains all the SMB operations and constants
nmb - Contains some of the NetBIOS over TCP/IP operations which is neccessary for the smb module to operate.
Quick Start
Request the NetBIOS name of the remote machine from your user.
Create a nmb.NetBIOS() object.
Call nmb.NetBIOS.gethostbyname() method to resolve your remote NetBIOS name to an IP address.
Create a smb.SMB() object, passing in the NetBIOS names and the resolved IP address.
Call smb.SMB.is_login_required() to determine if the remote machine requires login to further access its services. If login is required, retrieve the user name and password from the user and call smb.SMB.login().
Depending on your application, call the exported functions in smb.SMB object.