--- id: pccm version: "0.4.16" license: MIT license_treatment: permissive maintenance: dormant --- # pccm — Python C++ Code Manager. License: permissive · Maintenance: dormant · Downloads: 181.5K/mo ## What it is and what it does PCCM is a Python library that bridges Python and C++ by letting you write C++ code as Python strings and compile it dynamically. It wraps the complexity of C++ compilation behind a Python API, using dependencies like pybind11 for bindings, ccimport for compilation, and lark for parsing. The package is designed for developers who want to prototype or integrate C++ code without leaving Python or manually managing build systems. The library sits between pure Python and traditional C++ development: you define C++ functions and classes in Python code, PCCM generates the necessary build artifacts, and the compiled code becomes callable from Python. It's useful for performance-critical sections, wrapping existing C++ libraries, or rapid prototyping of C++ logic without context-switching to a separate build environment. Use it for: - Inline C++ optimization of performance-critical Python functions without writing separate build files. - Rapid prototyping of C++ algorithms directly from Python notebooks or scripts. - Wrapping or extending existing C++ libraries with Python-friendly bindings on the fly. - Building hybrid Python/C++ applications where C++ code is generated or modified at runtime. - Educational exploration of C++ from a Python-first workflow. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. PCCM manages Python-to-C++ code generation and compilation, letting you write C++ code as Python strings and compile it on demand with minimal setup. Yes, if you need dynamic C++ compilation from Python and are comfortable with dormant maintenance. The package is stable and has no known vulnerabilities, but expect no updates or support. Install only if your use case tolerates a frozen codebase and you've verified it works with your C++ compiler and Python version. ## Install pip install pccm uv add pccm poetry add pccm ## Installing pccm Before you install: Low install friction with a pure-Python wheel. Maintenance is dormant—last release was 707 days ago and the repository shows no recent activity, though it remains unarchived. The package is stable enough for existing users but unlikely to receive bug fixes or updates. License in practice: MIT license is permissive and poses no restrictions on commercial or private use, modification, or redistribution. Quickstart: pip install pccm import pccm # Create a C++ code manager instance and define/compile C++ code code = pccm.builder.Builder() code.raw("int add(int a, int b) { return a + b; }") code.build() Requires Python >= 3.6. Compilation of C++ code depends on a working C++ compiler and build toolchain on the target system. Verify before relying: - Whether the package works reliably with modern C++ standards and recent compiler versions. - Compatibility with PyPy beyond the classifier claim. - Whether dormant status means critical bugs remain unfixed. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: dormant - Downloads: 181.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags python c++ code generation, inline c++ compilation, python c++ binding, dynamic c++ compilation, c++ code manager, python c++ integration, c++ code generation from python, c++-integration, code-generation, dynamic-compilation [View on SkillFed](https://skillfed.io/packages/pccm) · [View on PyPI](https://pypi.org/project/pccm/)