Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

MMap File-Backed Arrays for Python

Project Description

© 2014 Farsight Security Inc.

© 2010 Victor Ng

Released under the MIT license. See license.txt.


This library provides persistent, shared, disk-backed arrays with a similar structure to the built-in array module. You might want to use this if you have a dataset that is larger than available physical memory, or if you want to reduce startup time for your program by loading data on demand, or if you want yet another way to share memory between processes.

Compatible with Python 2.7 and Python 3.x. Supports locked pages on Linux >= 2.5.37 with the want_lock parameter to mmaparray.array() and mmaparray.MMap<type>Array.__init__().


import mmapfile

a = mmapfile.array('example.array', 'I', 100)
for i in range(0, len(a)):
    a[i] = i

for i, val in enumerate(a):
    print ('a[{}] = {}'.format(i, val))


Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(8.2 kB) Copy SHA256 Hash SHA256
Source None Oct 21, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting