MMap Arrays: Fast, Disk-Backed Arrays for Python
© 2014 Farsight Security Inc.
© 2010 Victor Ng
Released under the MIT license. See license.txt.
About
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__().
Usage
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))
a.flush()
a.close()
Metadata
Release files for mmaparray 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mmaparray-0.4.tar.gz | 8.2 kB | Without provenance | Details for mmaparray-0.4.tar.gz |
Release files / mmaparray-0.4.tar.gz
| Download URL | mmaparray-0.4.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a83f33218749b631346d18098ceda20502112f89ef48e8d6ffcac805716821e
|
|
BLAKE2b-256 checksum How to use checksums |
7b1c7669fbb0eac6ca07933723f223031b558a604fb1b746a91904ce03640df2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mmaparray 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.