Metadata-Version: 1.1
Name: numpy-ringbuffer
Version: 0.1.1
Summary: Ring buffer implementation for numpy
Home-page: https://github.com/eric-wieser/numpy_ringbuffer
Author: Eric Wieser
Author-email: wieser.eric+numpy@gmail.com
License: MIT
Download-URL: https://github.com/eric-wieser/numpy_ringbuffer/tarball/v0.1.1
Description: numpy\_ringbuffer

        =================

        

        |Build Status|

        

        |codecov|

        

        Circular buffers (aka ring buffers) backed by a numpy array, supporting

        the operations:

        

        -  ``b.append(val)``

        -  ``b.appendleft(val)``

        -  ``b.pop(val)``

        -  ``b.popleft(val)``

        -  ``np.array(b)`` - fast unwrapping into a numpy array, for

           vectorization

        

        For example:

        

        .. code:: python

        

            import numpy as np

            from numpy_ringbuffer import RingBuffer

        

            r = RingBuffer(capacity=4, dtype=np.bool)

            r.append(True)

            r.appendleft(False)

            print(np.array(r))  # array([False, True])

        

        .. |Build Status| image:: https://travis-ci.org/eric-wieser/numpy_ringbuffer.svg?branch=master

           :target: https://travis-ci.org/eric-wieser/numpy_ringbuffer

        .. |codecov| image:: https://codecov.io/gh/eric-wieser/numpy_ringbuffer/branch/master/graph/badge.svg

           :target: https://codecov.io/gh/eric-wieser/numpy_ringbuffer

        
Keywords: numpy,buffer,ringbuffer,circular buffer
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
