It depends on how an editor’s completion mechanism works. IDLE gets completions from a live objects. This is a bit awkward since too many people will not read the doc that tells them this, but it will do what you want if you know. In particular, suppose you edit a file that defines or imports Context, sets more attributes as you describe, and creates an instance. Run the file. Then instance completion will show the added attributes, both in Shell and the editor. (No is needed if you wait the user-configered time, which I set to be very short.) I tested this with a simplified example.
Thanks for the reply, and yes, sorry, should’ve mentioned it. It works in IDLE, but this is not the place where these API clients will be primarily be used.
These API clients will be used to create other applications/services, so the autocompletion will need to happen in an IDE like VS Code, PyCharm et al.
But it seems like they only check the AST (at least what I saw in the codebase of jedi and rope), which can’t evaluate the entry points.
I guess there is no way (even a tiny possibility) to make it discoverable, right?