Numpy Memmap easy wrapper for array manipulation
Python2/3 memmap wrapper to share arrays easily between processes in real time.
Installation
You can install easy_memmap from pip using
pip install easy_memmap
or using
pip install git+https://github.com/charlielito/easy_memmap
Numpy [d]types supported
The library accepts any type of the following supported by numpy
np.boolnp.int8, np.int16, np.int32, np.int64np.uint8, np.uint16, np.uint32, np.uint64np.float16, np.float32, np.float64
Usage
The program that shares the array can be
from easy_memmap import EasyMemmap
import numpy as np
m = EasyMemmap(mode="w", name="mytest")
data = np.zeros((480,640,4))
m.write(data)
And the programm that reads the array
from easy_memmap import EasyMemmap
m = EasyMemmap(mode="r", name="mytest")
data = m.read()
The name of the EasyMemmap object needs to be the same, otherwise it won't be able to find the data and it will return None
To see other usages streaming in real time images from a web_camera, see examples
Metadata
Release files for easy-memmap 0.0.2
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 |
|---|---|---|---|---|
| easy_memmap-0.0.2.tar.gz | 4.6 kB | Without provenance | Details for easy_memmap-0.0.2.tar.gz |
Release files / easy_memmap-0.0.2.tar.gz
| Download URL | easy_memmap-0.0.2.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a271f5cc8de2247b3ee44c772fbf2c742bed3a326d801dc2253ba7cbb1fbd2a
|
|
BLAKE2b-256 checksum How to use checksums |
38cfe848473fa2a51561650190c8a2bffd1ffa7f6871d12bdfb2017d5e309f01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|
Security for easy-memmap 0.0.2
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.