aiosmb is an asynchronous Python implementation of the SMB (Server Message Block) protocol, supporting SMBv2 and SMBv3. It enables high-level client connections and low-level packet manipulation. Current version 0.4.14 supports Python >=3.7. It is actively maintained and released ad-hoc.
pip install aiosmbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Establishes an SMB connection and authenticates.
Use `from aiosmb.compat import SMBClient` instead of `from aiosmb.client import SMBClient`.
Check the return value: `if await conn.authenticate(): ...`.
Always run within an async context. Use `asyncio.run()` or `await` properly.
Set `encrypt=True` in SMBConnection parameters to force encryption.