What I mean to ask is:
- TLDR: how do I have my package's help include all underlying docstrings?
- I have created a package. That package has all the proper
__init__.py
files and all the proper docstrings (module, function, class, and method level docstrings). However, when I performhelp(mypackage)
, the only help provided is the help provided at that top level__init__.py
module.
Often package-level help does not include all of the underlying docstrings, but sometimes it does.
I want to make sure that I am embedding all of the underlying docstrings.
For instance, within the numpy
package all underlying docstrings are available in the help at the command prompt, even though they are not provided at the top-level __init__.py
.
I.e., I can type
>>> help(numpy)
and see all of the documentation, including documentation defined outside of the dunder init module.
However, many other packages, including popular ones like the pandas
package do not capture all of the underlying documentation.
I.e., typing
>>> help(pandas)
only provides me the documentation defined in __init__.py
.
I want to create package-level documentation mirroring how numpy
does it.
I have tried to look through numpy
to see how it is performing this magic, with no luck. I have performed Google searches, but it seems there is no way to phrase this question and get any decent links back.