pip install pdoc
pdoc --html my_module
python
import pdoc
# Create a Pdoc object and specify the module name
doc = pdoc.Module('my_module')
# Generate the HTML documentation in the specified output directory
doc.html('docs')
print("Documentation generated successfully!")