Is it possible to programmatically retrieve C++ class name / Python class name mapping ?

Open
#424 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp, python
Domain
api

Research direction

Start by reviewing the Boost.Python runtime interface relevant to class_ registrations, then compare it with the Doxygen XML data and the generated .pyi output described in the issue. Done means establishing whether the C++ and Python class mapping can be retrieved programmatically and documenting the required approach or limitation.

Written by the indexing model from the issue text.

Description

Hello,

Suppose I do the following:

class_<somevendor::SomeClass>("SomePyClass");

Is there a way at runtime in Python to retrieve the mapping between SomePyClass and somevendor::SomeClass ?

For context I am writing some code to parse Doxygen XML files and producing the .pyi file to get more auto-completion and docstrings

Dominant language
C++
Stars
537
Forks
223
Avg merge
11h 22m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/python

All issues in boostorg/python

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.