GitPedia
miketeo

miketeo/pysmb

pysmb is an experimental SMB/CIFS library written in Python. It implements the client-side SMB/CIFS protocol (SMB1 and SMB2) which allows your Python application to access and transfer files to/from SMB/CIFS shared folders like your Windows file sharing and Samba folders.

30 Releases
Latest: 1mo ago
pysmb 1.2.14pysmb-1.2.14Latest
miketeomiketeo·1mo ago·May 9, 2026
GitHub

Add ```setLastWriteTime()``` method for assigning the last modification time of a file/folder (#233)

pysmb 1.2.13pysmb-1.2.13
miketeomiketeo·9mo ago·September 20, 2025
GitHub

Fix type hinting issues on Python versions prior to 3.9. (#230)

pysmb 1.2.12pysmb-1.2.12
miketeomiketeo·9mo ago·September 19, 2025
GitHub

Add support for NetBIOS packet polling on Linux (#229)

pysmb 1.2.11pysmb-1.2.11
miketeomiketeo·1y ago·March 25, 2025
GitHub

📋 Changes

  • Fix out-of-memory issues during large file operations (due to accumulation of messages in message_history).
pysmb 1.2.10pysmb-1.2.10
miketeomiketeo·1y ago·September 25, 2024
GitHub

📋 Changes

  • Fix a bug where the OperationFailure exceptions do not contain the error messages that were thrown when the exception occurred (#212)
  • Update test cases to replace SafeConfigParser with ConfigParser (#219)
  • Allow callers to override default tqdm kwargs (#222)
pysmb 1.2.9.1pysmb-1.2.9.1
miketeomiketeo·3y ago·January 3, 2023
GitHub

Users have reported issues with installing 1.2.9 from PyPI. 1.2.9.1 was released to fix this issue.

pysmb 1.2.9pysmb-1.2.9
miketeomiketeo·3y ago·December 25, 2022
GitHub

📋 Changes

  • Add support for tqdm progress display (#205)
  • Fix bug where timeout parameter was not passed to socket.createConnection() (#202)
pysmb 1.2.8pysmb-1.2.8
miketeomiketeo·4y ago·June 12, 2022
GitHub

📋 Changes

  • Fix issue with listPath based on recommendation in #195
  • Fix embedded MD4 algorithm (#198)
  • Add SMB UTF-16 surrogate exception workaround policy (#186, #187)
pysmb 1.2.7pysmb-1.2.7
miketeomiketeo·5y ago·May 30, 2021
GitHub

📋 Changes

  • Fix compatibility issues on file retrievals with Likewise servers (#177)
  • Improve SMBConnection's connect() method to remove the need to provide sock_family
pysmb 1.2.6pysmb-1.2.6
miketeomiketeo·5y ago·December 9, 2020
GitHub

Fix bug in SMB1 store file implmentation which generates SMB_COM_WRITE_ANDX packets larger than the allowed max buffer size (#175)

pysmb 1.2.5pysmb-1.2.5
miketeomiketeo·5y ago·October 18, 2020
GitHub

📋 Changes

  • Fix bug in filename encoding which leads to failure for file retrieval and upload operations (#170 #171).
  • Improve resetFileAttributes() method in SMBConnection class to allow the new attribute to be specified in the reset operation (#172).
pysmb 1.2.4pysmb-1.2.4
miketeomiketeo·5y ago·October 6, 2020
GitHub

Remove dependency on pycrypto (#167)

pysmb 1.2.3pysmb-1.2.3
miketeomiketeo·5y ago·October 6, 2020
GitHub

📋 Changes

  • Fix bug in session key generation during session negotiation (#166)
  • Fix bug in SMB message signing which leads to operation failures with Samba services.
pysmb 1.2.2rel-1-2-2
miketeomiketeo·5y ago·September 5, 2020
GitHub

📋 Changes

  • Improve SMB URL handlers to support specifying server's machine name and IP address. (#162)
  • Improvements to documentation on SMB URLs (#160)
pysmb 1.2.1rel-1-2-1
miketeomiketeo·6y ago·May 17, 2020
GitHub

Fix bug in deleteFiles() method which can fail for certain search patterns.

pysmb 1.2.0rel-1-2-0
miketeomiketeo·6y ago·May 17, 2020
GitHub

Improve deleteFiles() API to support deletion of child folders that match the search pattern.

pysmb 1.1.29rel-1-1-29
miketeomiketeo·6y ago·May 16, 2020
GitHub

📋 Changes

  • Fix unhandled exception for short NBNS queries [#149]
  • Fix wildcard file deletion with servers on SMB2 protocol [#33]
pysmb 1.1.28rel-1-1-28
miketeomiketeo·6y ago·November 23, 2019
GitHub

SharedFile instances returned from the listPath() method now has a new file_id attribute which represents the file reference number given by the SMB server. [#147]

pysmb 1.1.27rel-1-1-27
miketeomiketeo·7y ago·January 8, 2019
GitHub

Remove support for SMB-2.1 dialect as it seems to have issues with Windows 2008 R2.

pysmb 1.1.26rel-1-1-26
miketeomiketeo·7y ago·January 5, 2019
GitHub

📋 Changes

  • Prevents OperationError from being raised when listPath() operation does not return any matching file results.
  • SMBConnection is now a context manager #122.
pysmb 1.1.25rel-1-1-25
miketeomiketeo·7y ago·July 28, 2018
GitHub

📋 Changes

  • Fix buggy support for search parameter in listPath() method. Add SMB_FILE_ATTRIBUTE_INCL_NORMAL bit constant to include 'normal' files with other file types in the returned result. From now on, pysmb defines a 'normal' file as a file entry that is not read-only, not hidden, not system, not archive and not a directory; it ignores other attributes like compression, indexed, sparse, temporary and encryption. listPath() method will now include 'normal' files using the default search parameter.
  • Add isNormal property to SharedFile class to support test if the file is a 'normal' file (according to pysmb definition of 'normal' file).
pysmb 1.1.24rel-1-1-24
miketeomiketeo·7y ago·July 19, 2018
GitHub

📋 Changes

  • Improve listPath implementation for SMB1
  • Support for STATUS_PENDING responses across all SMB2 operations.
pysmb 1.1.23rel-1-1-23
miketeomiketeo·8y ago·May 5, 2018
GitHub

📋 Changes

  • Fix bug in listShares() method which fails when the remote server has many shares. (Contributed by @carlosefr)
  • Improve echo() method to test and fail if the provided data to echo is not a bytes object. (Contributed by @carlosefr)
  • Fix bug in listPath() method where the path to query is not properly terminated. (Contributed by @Yepoleb)
pysmb 1.1.22rel-1-1-22
miketeomiketeo·8y ago·September 17, 2017
GitHub

Fix bug in getAttributes() method which should return only the filename instead of the entire path for the filename property for the return result.

pysmb 1.1.21rel-1-1-21
miketeomiketeo·8y ago·September 9, 2017
GitHub

Fix bug where timestamp values for SMB1 getAttributes() response are not converted properly from FILETIME to epoch time values

Tag for pysmb 1.1.20rel-1-1-20
miketeomiketeo·8y ago·August 13, 2017
GitHub

📋 Changes

  • Add getSecurity() method to support security descriptors query via SMB2. (Contributed by @koniiiik)
  • Improve retrieveFile() and retrieveFileFromOffset() methods to allow file
  • Silently discards NMB SESSION_KEEPALIVE packets instead of raising warnings.
  • SMB sessionID will be sent in ECHO requests to conform to SMB2 specs. (Contributed by @divad)
  • Fix type errors for MD4 functions in python3. (Contributed by @viatoriche)
Tag for pysmb 1.1.19rel-1-1-19
miketeomiketeo·9y ago·November 13, 2016
GitHub

Ignore STATUS_PENDING during delete and file store operations which could cause such operations to abort.

Tag for pysmb 1.1.18rel-1-1-18
miketeomiketeo·10y ago·April 9, 2016
GitHub

📋 Changes

  • Rollback fixes to NTLMv2 response algorithm in pysmb 1.1.17. The fixes
  • Add missing errno imports in SMBConnection.py
  • Fix UnboundLocalError raised when using type() in SMBConnection.py
Tag for pysmb 1.1.17rel-1-1-17
miketeomiketeo·10y ago·November 11, 2015
GitHub

📋 Changes

  • Fix crashes in directory listing with keyerror 'support_dfs'
  • Fix bugs in NTLMv2 response algorithm.
  • Fix bugs where client domain is not included as part of the session negotiation.
Tag for pysmb 1.1.16rel-1-1-16
miketeomiketeo·11y ago·May 10, 2015
GitHub

📋 Changes

  • Fix typo errors in authentication error messages
  • Improve share listings on SMB2 protocol by ignoring interim STATUS_PENDING responses.