cpp-demangle-0.1.2
توضیحات
A package for demangling C++ linker symbols
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cpp-demangle-0.1.2 |
| نام | cpp-demangle |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ben Frederickson |
| ایمیل نویسنده | ben@benfrederickson.com |
| آدرس صفحه اصلی | http://github.com/benfred/py-cpp-demangle/ |
| آدرس اینترنتی | https://pypi.org/project/cpp-demangle/ |
| مجوز | MIT |
py-cpp-demangle: Demangles C++ linker symbols
============================================================
.. image:: https://github.com/benfred/py-cpp-demangle/workflows/Build/badge.svg?branch=master
:target: https://github.com/benfred/py-cpp-demangle/actions?query=branch%3Amaster
A package for demangling C++ linker symbol strings
This package provides python bindings for the rust crate
`cpp_demangle <http://github.com/gimli-rs/cpp_demangle>`_ by building
a native Python extension using `PyO3 <https://github.com/pyO3/pyO3>`_.
This is mainly an experiment in creating python extensions in Rust.
`A blog post about this is here.
<https://www.benfrederickson.com/writing-python-extensions-in-rust-using-pyo3/>`_
Usage
-------------------
To install
.. code-block:: python
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.
.. code-block:: python
from cpp_demangle import demangle
print(demangle('_ZN7mangled3fooEd'))
# prints 'mangled::foo(double)'
Released under the MIT License
نحوه نصب
نصب پکیج whl cpp-demangle-0.1.2:
pip install cpp-demangle-0.1.2.whl
نصب پکیج tar.gz cpp-demangle-0.1.2:
pip install cpp-demangle-0.1.2.tar.gz