{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/7"}],"enrichment":{"capability":"Cppy is a C++ header library that simplifies writing Python extension modules by providing a PyObject smart pointer that automatically manages reference counting and offers convenience methods for common object operations.","skillfed_tags":["c++-bindings","extension-development"],"use_cases":["Writing Python extension modules in C++ where automatic reference counting reduces memory management errors.","Building performance-critical Python libraries that need C++ implementation with less boilerplate.","Simplifying PyObject manipulation in C++ code by using convenience methods instead of raw CPython API calls.","Maintaining C++ extensions across multiple Python versions with a consistent, version-agnostic wrapper."],"what_it_does":"Cppy is a header-only C++ library designed to reduce boilerplate when writing Python extension modules in C++. Its core contribution is a PyObject smart pointer that automatically handles Python's reference counting semantics, eliminating manual Py_INCREF and Py_DECREF calls and reducing a common source of memory leaks in C++ extensions. The library also provides convenience methods for typical object operations, making the C++ code more idiomatic and less error-prone.\n\nThe package is distributed as a pure Python wheel containing the C++ headers, so installation is straightforward and has no compiled dependencies. It supports modern Python versions and is actively maintained. Developers use it by including the header in their C++ extension code and leveraging the smart pointer and utility methods to write cleaner, safer extension modules.","worth_installing":"Yes, if you are writing C++ Python extensions. Cppy is actively maintained, has no security vulnerabilities, uses a permissive BSD license, and solves a real pain point in extension development. The low install friction makes it a practical choice. If you are not writing C++ extensions, it has no value."},"id":"cppy","links":{"html":"https://skillfed.io/packages/cppy","md":"https://skillfed.io/packages/cppy.md","pypi":"https://pypi.org/project/cppy/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-02-11","license_spdx":null,"license_treatment":"permissive","name":"cppy","python_support":"supports_current","summary":null},"popularity":{"monthly_downloads":684160,"position":5358,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3.1"}
