Circular buffer storing numpy arrays that can be shared between one writer and several readers
Project description
sferriol-scb
sferriol-scb is a module to create Numpy Shared Cyclic Buffer
Installation
pip install sferriol-scb
Usage
Writer
from sferriol import scb
with scb.Writer(
name = 'toto', # name of the shared cyclic buffer
capacity=100000, # number of arrays allocated
shape=(1, ), # shape of the arrays
dtype=np.uint32 # dtype of the arrays
) as writer:
writer.put(np.asarray(1234)) # put one array in the buffer
Async_Reader
from sferriol import scb
with scb.Async_Reader(name='toto', timeout=10) as reader:
data = await reader.get()
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sferriol_scb-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sferriol_scb-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81fe7762d446430d2cdbe90b236063b886af13fac131bc4013482c6116670c23
|
|
| MD5 |
6caf1dfb6b8c13a95aec45280a685b3a
|
|
| BLAKE2b-256 |
53916d1845336937a710b37bd3c5389b0000e7d8fa71893ab77845d32ccae730
|