Registry / serialization / smmap
library5.0.3pypypi✓ verified 24d ago

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 smmap
INSTALL
IMPORT
SIG · SMMAP
S
smmap
serializationpythonv5.0.3
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v5.0.3 · 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.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

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

SlidingWindowMapBuffer
from smmap import SlidingWindowMapBuffer
from smmap import MemoryMap
SlidingWindowMapManager
from smmap import SlidingWindowMapManager
StaticWindowMapManager
from smmap import StaticWindowMapManager

A basic example demonstrating how to use smmap to memory-map a file and read data from it.

import os from smmap import MemoryMap # Initialize a MemoryMap instance mm = MemoryMap('example.txt') # Read data from the memory-mapped file with mm as m: data = m.read(1024) print(data)
Debug
Known issues
breakingVersion 6.0.0 dropped support for Python 3.6 and 3.7, and declared support for Python 3.11 and 3.12.
fix
Upgrade to Python 3.11 or later.
affects: >=6.0.0
deprecatedVersion 5.0.0 dropped support for Python 3.5.
fix
Upgrade to Python 3.6 or later.
affects: >=5.0.0
gotchaEnsure that the smmap package is installed in the correct Python environment to avoid ImportError.
fix
Use pip to install smmap in the active environment.
affects: All
breakingThe 'MemoryMap' class was removed from the top-level 'smmap' module in version 5.0.0. For smmap versions 5.x, it was moved to 'smmap.mman'. In version 6.0.0 and later, 'MemoryMap' was entirely removed.
fix
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.
affects: >=5.0.0
breakingThe 'MemoryMap' class/symbol was removed from the 'smmap' library in version 0.3.0. Applications attempting to import 'MemoryMap' directly from 'smmap' will fail.
fix
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'.
affects: >=0.3.0
Upgrade
Version history
5.0.3latest on PyPI · released Mar 9, 2026
Audit
Dependencies
pythonrequiredRequired Python version >=3.7
Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
1
Resources