Registry / devops / omnimalloc

omnimalloc

JSON →
library0.3.0pypypi✓ verified 79d ago

A Python library providing static memory allocation with a unified interface. It supports arena-based allocation, stack allocators, and pool allocators for performance-critical or embedded contexts. Current version is 0.3.0, updated April 2025. Active development with infrequent releases.

pip install omnimalloc
INSTALL
IMPORT
SIG · OMNIMALLOC
O
omnimalloc
devopspythonv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

Allocation
from omnimalloc import Allocation
from omnimalloc import Arena
allocate
from omnimalloc import allocate
Pool
from omnimalloc import Pool

Basic usage: create a static memory arena, inspect stats, and free it.

from omnimalloc import Arena # Allocate a 1KB arena arena = Arena(1024) stats = arena.stats() print(f"Capacity: {stats.capacity}, Used: {stats.used}") # Clean up arena.free()
Debug
Known issues
gotchaArena.free() must be called manually; there is no automatic garbage collection. Forgetting to call free() causes memory leaks.
fix
Use context managers: `with Arena(1024) as arena:` (available from 0.2.0+).
affects: all
breakingIn 0.2.0, all allocator classes moved from `omnimalloc.allocators.*` to `omnimalloc`. Old imports will break.
fix
Update imports to `from omnimalloc import Arena, StackAllocator, PoolAllocator`.
affects: 0.1.x to 0.2.0
deprecatedThe `omnimalloc.mmap` module (memory-mapped arenas) is deprecated and will be removed in 0.4.0. Use `Arena` with `backed='mmap'` instead.
fix
Replace `from omnimalloc.mmap import MmapArena` with `Arena(size, backed='mmap')`.
affects: >=0.2.0
gotchaArena objects are not thread-safe by default. Concurrent allocations from multiple threads can corrupt internal state.
fix
Use `omnimalloc.ThreadSafeArena` wrapper or external locking.
affects: all
Upgrade
Version history
0.3.0latest on PyPI · released Apr 2, 2026
Audit
Dependencies
numpyoptionalRequired for some allocator backends (e.g., memory-mapped arrays)
Agent activity
2 hits · last 30 days
node
2
Resources
omnimalloc — pip install omnimalloc · libregistry