pccm
Python C++ Code Manager.
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 on this page — 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
pccm on PyPI
pip
pip install pccmuv
uv add pccmpoetry
poetry add pccmInstalling 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 the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — ccimport, pybind11, fire, lark, portalocker |
| Maintenance | dormant — 707 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 181,494/month — #10,124 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pccm-0.4.16-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
ccimportccimport builds Python C++ bindings on-the-fly…
permissive · top 15,000 on PyPI
nanobindnanobind exposes C++ types in Python and vice…
permissive · top 5,000 on PyPI
aspose-slidesAspose.Slides generates, modifies, converts,…
unclear · top 15,000 on PyPI
pywinptyPyWinpty creates and manages pseudoterminals on…
permissive · top 5,000 on PyPI
py-solc-xManages installation and version control of the…
permissive · top 15,000 on PyPI
NuitkaNuitka compiles Python code to C and then to…
agpl · top 15,000 on PyPI
typstCompiles Typst markup documents to PDF, PNG,…
unclear · top 15,000 on PyPI
stylusBridges Python code to the Stylus CSS compiler,…
permissive · top 15,000 on PyPI
PyLaTeXPyLaTeX generates LaTeX documents and code…
permissive · top 15,000 on PyPI
solc-selectManages installation and switching between…
agpl · top 15,000 on PyPI