cymem

Manage calls to calloc/free through Cython

pipmacoslinuxwindows
Try with needOr install directly
Source

About

Manage calls to calloc/free through Cython

Commands

cymem

Examples

Import cymem in a Python script to manage memory allocation$ python -c "import cymem; pool = cymem.Pool(); ptr = pool.alloc(10); print('Memory allocated')"
Use cymem in a Cython module for efficient C memory management$ cython -3 --cplus mymodule.pyx && python setup.py build_ext --inplace
Check cymem version and installation$ python -c "import cymem; print(cymem.__version__)"