All Projects → benfred → py-cpp-demangle

benfred / py-cpp-demangle

Licence: MIT license
A python package for demangling C++ linker symbols

Programming Languages

rust
11053 projects
python
139335 projects - #7 most used programming language
shell
77523 projects

py-cpp-demangle: Demangles C++ linker symbols

https://travis-ci.org/benfred/py-cpp-demangle.svg?branch=master https://ci.appveyor.com/api/projects/status/bh3usbvstog4x42x/branch/master?svg=true

A package for demangling C++ linker symbol strings

This package provides python bindings for the rust crate cpp_demangle by building a native Python extension using PyO3.

This is mainly an experiment in creating python extensions in Rust. A blog post about this is here.

Usage

To install

pip install cpp-demangle

Building from source requires the nightly version of the rust compiler.

This module exposes a single function that transforms C++ linker symbols to a human readable representation.

from cpp_demangle import demangle

print(demangle('_ZN7mangled3fooEd'))
# prints 'mangled::foo(double)'

Released under the MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].