RedBlackPy is a light Python library that provides data structures aimed to fast insertion, removal and self sorting to manipulating ordered data in efficient way. The core part of the library had been written on C++ and then was wrapped in Cython. Hope that many would find the primary data structures of this library very handy in working with time series. One of the main feature of this structures is an access by arbitrary key using interpolation, what makes processing of multiple non synchronized time series very simple. All data structures based on red black trees.
>> python setup.py install
Run in your command line
>> pip install redblackpy
# your_ex.pyx from redblackpy.series.tree_series import Series from redblackpy.series.tree_series cimport Series cpdef Series test(): cdef Series myseries = Series() myseries.insert(1,1) return myseries
Also, include necessary directories with .hpp headers to compile your extension module by adding
include_dirs parameter in
# setup.py from setuptools import setup from distutils.extension import Extension from Cython.Build import cythonize import redblackpy as rb ex = Extension( "your_module.your_ex", sources=["your_module/your_ex.pyx"], include_dirs=[rb.get_include()] ) setup( name='your_module', ext_modules = cythonize(ex) )
Feel free to contact us about any questions. Website of our team IntuitionEngineering.
Core developer email: email@example.com.
Intuition dev email: firstname.lastname@example.org.