.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4. .TH STUBGEN "1" "February 2017" "stubgen 0.470" "User Commands" .SH NAME stubgen \- Generate draft stubs for Python modules. .SH DESCRIPTION usage: stubgen [\-\-py2] [\-\-no\-import] [\-\-doc\-dir PATH] .IP [\-\-search\-path PATH] [\-p PATH] MODULE ... .PP Generate draft stubs for modules. .PP Stubs are generated in directory ./out, to avoid overriding files with manual changes. This directory is assumed to exist. .SH OPTIONS .TP \fB\-\-py2\fR run in Python 2 mode (default: Python 3 mode) .TP \fB\-\-recursive\fR traverse listed modules to generate inner package modules as well .TP \fB\-\-fast\-parser\fR enable experimental fast parser .HP \fB\-\-ignore\-errors\fR ignore errors when trying to generate stubs for modules .TP \fB\-\-no\-import\fR don't import the modules, just parse and analyze them (doesn't work with C extension modules and doesn't respect __all__) .TP \fB\-\-doc\-dir\fR PATH use .rst documentation in PATH (this may result in better stubs in some cases; consider setting this to DIR/Python\-X.Y.Z/Doc/library) .HP \fB\-\-search\-path\fR PATH .IP specify module search directories, separated by ':' (currently only used if \fB\-\-no\-import\fR is given) .TP \fB\-p\fR PATH use Python interpreter at PATH (only works for Python 2 right now) .TP \fB\-h\fR, \fB\-\-help\fR print this help message and exit