Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upAbility to get documentation without importing code #82
Comments
This comment has been minimized.
This comment has been minimized.
Could you explain a bit more what you mean by this? I agree that a tool that generates documentation by only inspecting the AST (without ever importing the module) is useful. However, that tool is not nor will ever be |
This comment has been minimized.
This comment has been minimized.
|
Ah, okay. I just read something along those lines in the docs, and was hopeful. I keep hoping to find something that doesn't import code to be able to generate docs, but it sounds like pdoc isn't it. Thanks for the reply. epydoc has a mode where it will do parse-only docs, but as you know, it hasn't been touched in the last ~5 years, and has no py3 support :( |
ericholscher commentedDec 11, 2015
It sounds like a good bit of the infrastructure is already there for getting docs out of python code without importing it. Would it be possible to have this exposed, so that you could get (perhaps more limited) documentation from a file, without requiring it (and all its dependencies) to be importable?