Python Packages to facilitate cython cdef-classes that expose memoryviews as numpy arrays.
provides a Base-Class for cython CDef-Classes, that allow to define arrays as attributes which can be used in cython code as fast memoryviews and at the same time be accessed from python as numpy-arrays In addition, the dimensions and shapes of data assigned to the arrays is checked automatically. If you try to set data with wrong dimensions or shapes, an error is thrown. Data is automatically converted to the right dtype.
You can use pip to install the packages (and the requirements like numpy).
pip install cythonarrays
Another way to handle dependencies is to use conda.
There conda packages for python 3.8-3.12 for windows and linux are generated in the channel MaxBo in Anaconda Cloud.
conda create -n myenv python=3.12
conda activate myenv
conda config --add channels conda-forge
conda config --add channels MaxBo
conda install cythonarrays