refcount (conda): This package helps you achieve reliable management of memory allocated in native libraries, written for instance in C++. While it boils down to "simply" maintaining a set of counters, it is deceptively complicated to do so properly and not end up with memory leaks or crashes. <https://pyrefcount.readthedocs.io/en/latest/>.
Keywords: cffi|handle|interop|native-libraries|python|reference-counting