module helpgen._my_doxypy
¶
Short summary¶
module pyquickhelper.helpgen._my_doxypy
doxypy is an input filter for Doxygen. It preprocesses python files so that docstrings of classes and functions are reformatted into Doxygen-conform documentation blocks.
In order to make Doxygen preprocess files through doxypy, simply add the following lines to your Doxyfile:
FILTER_SOURCE_FILES = YES
INPUT_FILTER = "python /path/to/doxypy.py"
Classes¶
class |
truncated documentation |
---|---|
|
|
Implements a finite state machine. Transitions are given as 4-tuples, consisting of an origin state, a target state, … |
|
|
Functions¶
function |
truncated documentation |
---|---|
Says if the string s could be a filename. |
|
Starts the parser on the file given by the filename as the first argument on the commandline. |
|
Parses commandline options. |
|
Applies the doxypy like process to a string. |
Methods¶
method |
truncated documentation |
---|---|
|
Appends any open comment block and triggering block to the output. |
|
Adds brief to the docstrings summary line. A brief is prepended, provided no other doxygen command is at the … |
|
Flushes the current outputbuffer to the outstream. |
|
Constructor for Doxypy. |
|
|
|
|
|
Appends a comment line. The comment delimiter is removed from multiline start and ends as well as singleline … |
|
Appends a line to the triggering block. |
|
Appends a line in the FILEHEAD state. Closes the open comment block, resets it and appends the current line. |
|
Appends a line to the output. |
|
The catchall-condition, always returns true. |
|
Indents the current comment block with respect to the current indentation level. |
Makes a transition based on the given input. |
|
|
Parses a python file given as input string and returns the doxygen- compatible representation. |
|
Parses a python file given as input string and returns` the doxygen compatible representation. |
|
Parses one line of python and flush the resulting output to the outstream. |
|
Restarts a new comment search for a different triggering line. Closes the current commentblock and starts a new … |
|
|
|
Starts a new comment search. Saves the triggering line, resets the current comment and saves the current … |
|
Stops a comment search. Closes the current commentblock, resets the triggering line and appends the current … |
Documentation¶
doxypy is an input filter for Doxygen. It preprocesses python files so that docstrings of classes and functions are reformatted into Doxygen-conform documentation blocks.
In order to make Doxygen preprocess files through doxypy, simply add the following lines to your Doxyfile:
FILTER_SOURCE_FILES = YES
INPUT_FILTER = "python /path/to/doxypy.py"
- class pyquickhelper.helpgen._my_doxypy.FSM(start_state=None, transitions=None)[source]¶
Bases:
object
Implements a finite state machine.
Transitions are given as 4-tuples, consisting of an origin state, a target state, a condition for the transition (given as a reference to a function which gets called with a given piece of input) and a pointer to a function to be called upon the execution of the given transition.
attribute
meaning
transitions
holds the transitions
current_state
holds the current state
current_input
holds the current input
current_transition
hold the currently active transition
- pyquickhelper.helpgen._my_doxypy.is_file_string(s)[source]¶
Says if the string s could be a filename.
- Parameters:
s – string
- Returns:
boolean
- pyquickhelper.helpgen._my_doxypy.main(file=None, print_output=None)[source]¶
Starts the parser on the file given by the filename as the first argument on the commandline.
- Parameters:
file – if equal to None, take this one on the command line
print_output – every string is sent to that funtion
- pyquickhelper.helpgen._my_doxypy.process_string(content, print_output, process_comment, filename, first_row, debug=False)[source]¶
Applies the doxypy like process to a string.
- Parameters:
content – string
print_output – every string is sent to that funtion
process_comment – function applied to the help to modifies it
filename – or None if there is no file
first_row – True: to display error messages
debug – if True, display more information