Registry / serialization / pccm
library0.4.16pypypi✓ verified 83d ago

PCCM is a Python library for generating C++ code from Python class definitions, enabling seamless interoperability between Python and C++. It is currently at version 0.4.16, with moderate release cadence targeting Python >=3.6.

pip install pccm
INSTALL
IMPORT
SIG · PCCM
P
pccm
serializationpythonv0.4.16
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Class
from pccm import Class
from pccm import ClassBuilder
FunctionCode
from pccm import FunctionCode
builder
from pccm import builder

Define a PCCM class, add it to a builder, and generate C++ code.

from pccm import ClassBuilder, PccmClass class MyClass(PccmClass): def __init__(self): super().__init__() self.add_public_method('hello', []) builder = ClassBuilder() builder.add_class(MyClass) cpp_code = builder.build() print(cpp_code)
pccm --version
Debug
Known issues
breakingVersion 0.4.x changed the API for method registration: use add_public_method instead of add_method.
fix
Replace add_method with add_public_method (or add_private_method for private).
affects: >=0.4.0
gotchaClassBuilder.build() returns a string, not a file. Users often expect it to write to disk.
fix
Write the returned string to a file manually if needed.
affects: all
deprecatedDeprecated method 'add_property' is removed in 0.4.x; use 'add_getter_setter' instead.
fix
Replace add_property with add_getter_setter.
affects: >=0.4.0
Upgrade
Version history
0.4.16latest on PyPI · released Sep 6, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
pccm — pip install pccm · libregistry