Hello,
I have a packaged named "buhtzology" [1]. So you can do "import
buhtzology" and then "buhtzology.generate_filepath()".
But on the level of the filesystem the "def generate_filepath" is not in
"buhtzology/__init__.py" but "buhtzology/_buhtzology.py".
Everything in "_buhtzology.py" is imported into the namespace of
"buhtzology" when importing "buhtzology".
This is the relevant part of the "__init__.py" file.
from ._buhtzology import *
The problem is that "generate_filepath()" doesn't appear as
"buhtzology.generate_filepath()" in the pydoctor generated html files
but as "buhtzology._buhtzology.generate_filepath()".
You ask why I do it like this? It is because buhtzology has some
packages that should load by default (e.g. _buhtzology) and some that
don't (buhtzology.bandas).
I also tried to manipulate the __all__ variable which works in Doxygen
in that case but no in pydoctor.
[1] -- <https://codeberg.org/buhtz/buhtzology/src/branch/develop>
_______________________________________________
Twisted mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/twisted.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/ER2EELICFL7N2NIVMN62IEHK5BOAEWZW/
Code of Conduct: https://twisted.org/conduct