CMD + K

numpy_ringbuffer

Community

Ring buffer implementation for numpy

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::numpy_ringbuffer

Usage Tracking

0.2.2
1 / 8 versions selected
Downloads (Last 6 months): 0

Description

Ring (aka circular) buffers backed by a numpy array, supporting:

  • Operations from collections.deque
    • b.append(val)
    • b.appendleft(val)
    • b.extend(val)
    • b.extendleft(val)
    • b.pop(val)
    • b.popleft(val)
  • The collections.Sequence protocol (unoptimized)
  • C-side unwrapping into an array with np.array(b)
  • Arbitrary element dtypes, including extra dimensions like RingBuffer(N, dtype=(int, 3))

About

Summary

Ring buffer implementation for numpy

Last Updated

Jul 1, 2022 at 12:35

License

MIT

Total Downloads

3.2K

Supported Platforms

noarch