skillfed

pccm

Python C++ Code Manager.

pccm v0.4.16 181.5K downloads/30d#10,124 on PyPI15
Permissive license MIT DORMANT released

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 pccm

uv

uv add pccm

poetry

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 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

License :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Tags

python c++ code generationinline c++ compilationpython c++ bindingdynamic c++ compilationc++ code managerpython c++ integrationc++ code generation from python
c++-integrationcode-generationdynamic-compilation

More Build Tools packages