Easy memmap
Project description
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.bool
np.int8, np.int16, np.int32, np.int64
np.uint8, np.uint16, np.uint32, np.uint64
np.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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
easy_memmap-0.0.2.tar.gz
(4.6 kB
view details)
File details
Details for the file easy_memmap-0.0.2.tar.gz
.
File metadata
- Download URL: easy_memmap-0.0.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a271f5cc8de2247b3ee44c772fbf2c742bed3a326d801dc2253ba7cbb1fbd2a |
|
MD5 | f48f8dc9338ab702384f10a389a9506f |
|
BLAKE2b-256 | 38cfe848473fa2a51561650190c8a2bffd1ffa7f6871d12bdfb2017d5e309f01 |