/hub_shm

Python 3.6/3.7 backport of python 3.8's SharedMemory

Primary LanguagePythonMIT LicenseMIT

Hub Shared Memory

This package provides a backport of the Python 3.8's shared_memory module that works for 3.6 and 3.7. This is based off dillonlaird's Shared Numpy array but is leaner.

Install

To install run pip install hub-shm.

Installation will only work on Python 3.6.x and 3.7.x.

Usage

import hub_shm as shm

You can then access shm.SharedMemory and shm.ShareableList which are the same as the ones in Python 3.8's shared_memory module.