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
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 | |
|---|---|---|---|
| easy_memmap-0.0.2.tar.gz | 4.6 kB | Details |
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
|