A pure Python implementation of a sliding window memory map manager, currently at version 5.0.3, released on March 9, 2026. It is actively maintained with regular updates, including support for newer Python versions and improvements in continuous integration workflows.
pip install smmapVerified import paths — ran on the pinned version, not inferred.
A basic example demonstrating how to use smmap to memory-map a file and read data from it.
Upgrade to Python 3.11 or later.
Upgrade to Python 3.6 or later.
Use pip to install smmap in the active environment.
If using smmap 5.x, update imports from `from smmap import MemoryMap` to `from smmap.mman import MemoryMap`. If using smmap 6.0.0 or later, 'MemoryMap' is no longer available, and an alternative implementation or library version is required.
Downgrade smmap to a version older than 0.3.0 (e.g., `pip install smmap<0.3.0`) or update your application code to remove the dependency on 'smmap.MemoryMap'.