How to search help using python console

python help string
python help() function
python help operator
functions help in python
python help statement
how to check methods in python
help input python
python idle help

Is there any way to search for a particular package/function using keywords in the Python console?

For example, I may want to search "pdf" for pdf related tasks.

The pydoc -k flag searches the documentation.

pydoc -k <keyword>
    Search for a keyword in the synopsis lines of all available modules.

From a terminal, run..

$ pydoc -k pdf

..for example:

$ pydoc -k pdf

It doesn't search the contents of the documentation, but it searches all module names - if that's not enough, I'd suggest using Google or StackOverflow to search for "Python PDF module" or similar

Python help() function, How do you check if a function is in Python? Try this working fine (tested in python 2.7) Tkininter comes with the columnspan argument to span the labels Django 1.0 was updated recently Syntax : list. count (value) Code: colors = ['red', 'green',

You can use help to access the docstrings of the different modules you have imported, e.g., try the following:


and you'll get an error,

import math

and you will get a list of the available methods in the module, but only AFTER you have imported it. It also works with individual functions, e.g. after importing math try:


To deal with pdf you will probably have to install a third party module. A quick search has led me to this result, which I haven't tried:

Validate Arguments Passed to a Function, using the __doc__ method of the object or using the help function. If no argument is passed, Python's help utility (interactive help system) starts on the console. >>> help() Then, you can enter the name of the topic to get help on writing Python programs and using Python modules. For example: help> True help> 'print' help > print. To quit the help utility and return to the interpreter, you need to type quit and press enter. help > quit

help( "modules")

>>> help( "modules" )

Please wait a moment while I gather a list of all available modules...

C:\Program Files\Python26\lib\ DeprecationWarning: The wxPython compatibility package is no longer automatically generated or actively maintained.  Please switch to the wx package as soon
ArgImagePlugin      WmfImagePlugin      dbhash              pyclbr
BaseHTTPServer      XVThumbImagePlugin  decimal             pydoc
Bastion             XbmImagePlugin      difflib             pydoc_topics
BdfFontFile         XpmImagePlugin      dircache            pyexpat
BmpImagePlugin      _LWPCookieJar       dis                 quopri
BufrStubImagePlugin _MozillaCookieJar   distutils           random
CGIHTTPServer       __builtin__         doctest             re
Canvas              __future__          dumbdbm             repr
ConfigParser        _abcoll             dummy_thread        rexec
ContainerIO         _ast                dummy_threading     rfc822
Cookie              _bisect             email               rlcompleter
CurImagePlugin      _bsddb              encodings           robotparser
DcxImagePlugin      _bytesio            errno               runpy
Dialog              _codecs             exceptions          sched
DocXMLRPCServer     _codecs_cn          filecmp             select
EpsImagePlugin      _codecs_hk          fileinput           sets
ExifTags            _codecs_iso2022     fnmatch             sgmllib
FileDialog          _codecs_jp          formatter           sha
FitsStubImagePlugin _codecs_kr          fpformat            shelve
FixTk               _codecs_tw          fractions           shlex
FliImagePlugin      _collections        ftplib              shutil
FontFile            _csv                functools           signal
FpxImagePlugin      _ctypes             future_builtins     site
GbrImagePlugin      _ctypes_test        gc                  smtpd
GdImageFile         _elementtree        genericpath         smtplib
GifImagePlugin      _fileio             getopt              sndhdr
GimpGradientFile    _functools          getpass             socket
GimpPaletteFile     _hashlib            gettext             sqlite3
GribStubImagePlugin _heapq              glob                sre
HTMLParser          _hotshot            gzip                sre_compile
Hdf5StubImagePlugin _imaging            hashlib             sre_constants
IcnsImagePlugin     _imagingft          heapq               sre_parse
IcoImagePlugin      _imagingmath        hmac                ssl
ImImagePlugin       _imagingtk          hotshot             stat
Image               _json               htmlentitydefs      statvfs
ImageChops          _locale             htmllib             string
ImageColor          _lsprof             httplib             stringold
ImageDraw           _md5                idlelib             stringprep
ImageDraw2          _msi                ihooks              strop
ImageEnhance        _multibytecodec     imageop             struct
ImageFile           _multiprocessing    imaplib             subprocess
ImageFileIO         _random             imghdr              sunau
ImageFilter         _sha                imp                 sunaudio
ImageFont           _sha256             imputil             symbol
ImageGL             _sha512             inspect             symtable
ImageGrab           _socket             io                  sys
ImageMath           _sqlite3            itertools           tabnanny
ImageMode           _sre                json                tarfile
ImageOps            _ssl                keyword             telnetlib
ImagePalette        _strptime           lib2to3             tempfile
ImagePath           _struct             linecache           test
ImageQt             _subprocess         locale              textwrap
ImageSequence       _symtable           logging             this
ImageStat           _testcapi           macpath             thread
ImageTk             _threading_local    macurl2path         threading
ImageTransform      _tkinter            mailbox             time
ImageWin            _warnings           mailcap             timeit
ImtImagePlugin      _weakref            markupbase          tkColorChooser
IptcImagePlugin     _winreg             marshal             tkCommonDialog
JpegImagePlugin     abc                 math                tkFileDialog
McIdasImagePlugin   aifc                md5                 tkFont
MicImagePlugin      anydbm              mhlib               tkMessageBox
MimeWriter          array               mimetools           tkSimpleDialog
MpegImagePlugin     ast                 mimetypes           toaiff
MspImagePlugin      asynchat            mimify              token
OleFileIO           asyncore            mmap                tokenize
PIL                 atexit              modulefinder        trace
PSDraw              audiodev            msilib              traceback
PaletteFile         audioop             msvcrt              tty
PalmImagePlugin     base64              multifile           turtle
PcdImagePlugin      bdb                 multiprocessing     types
PcfFontFile         binascii            mutex               unicodedata
PcxImagePlugin      binhex              netrc               unittest
PdfImagePlugin      bisect              new                 update_manifest
PixarImagePlugin    bsddb               nntplib             urllib
PngImagePlugin      bz2                 nt                  urllib2
PpmImagePlugin      cPickle             ntpath              urlparse
PsdImagePlugin      cProfile            nturl2path          user
Queue               cStringIO           numbers             uu
ScrolledText        calendar            opcode              uuid
SgiImagePlugin      cgi                 operator            warnings
SimpleDialog        cgitb               optparse            wave
SimpleHTTPServer    chunk               os                  weakref
SimpleXMLRPCServer  cmath               os2emxpath          webbrowser
SocketServer        cmd                 parser              whichdb
SpiderImagePlugin   code                pdb                 winsound
StringIO            codecs              pickle              wsgiref
SunImagePlugin      codeop              pickletools         wx
TarIO               collections         pipes               wxPython
TgaImagePlugin      colorsys            pkgutil             wxversion
TiffImagePlugin     commands            platform            xdrlib
TiffTags            compileall          plistlib            xml
Tix                 compiler            popen2              xmllib
Tkconstants         contextlib          poplib              xmlrpclib
Tkdnd               cookielib           posixfile           xxsubtype
Tkinter             copy                posixpath           zipfile
UserDict            copy_reg            pprint              zipimport
UserList            csv                 profile             zlib
UserString          ctypes              pstats
WalImageFile        curses              pty
WbmpImagePlugin     datetime            py_compile

Enter any module name to get more help.  Or, type "modules spam" to search
for modules whose descriptions contain the word "spam".


Python Docstrings, This method is generally used with python interpreter console to get details about python objects. Table of Contents [hide]. 1 Python help() function; 2 Defining help​  Python Interpreter. Select one of the pre-configured Python interpreters from the list. Interpreter options. In this field, specify the string to be passed to the interpreter. If necessary, click Enter, and type the string in the editor. Working directory. Specify a directory to be used by the running console.

You can search for modules containing "pdf" in their description by running the command help("modules pdf").

Help function in Python, If the help function is passed without an argument, then the interactive help utility starts up on the console. Let us check the documentation of the print function in  Python help() is a built-in function that invokes the built-in help system. It returns all the help related to any module, function or the object supplied as the argument in the function. It returns all the help related to any module, function or the object supplied as the argument in the function.

pip is an excellent resource. If pip is installed (if you don't have it, instructions are here), then using the Windows command shell you can do the following:

pip search pdf

It returns a plethora of options.

C:\Python27\Scripts>pip search pdf
mwlib.rl                  - generate pdfs from mediawiki markup
slc.publications          - A content type to store and parse pdf publications
PyPDFLite                 - Simple PDF Writer.
pdfminer                  - PDF parser and analyzer
zopyx.convert             - A Python interface to XSL-FO libraries (Conversion
                            HTML to PDF, RTF, DOCX, WML and ODT)
WeasyPrint                - WeasyPrint converts web documents to PDF.
zopyx.convert2            - A Python interface for the conversion of HTML to
                            PDF, RTF, DOCX, WML and ODT) - belongs to
collective.pdfpeek        - A Plone 4 product that generates image thumbnail
                            previews of PDF files stored on ATFile based
pisa                      - PDF generator using HTML and CSS


The Python Help System, of Python itself. In this article, you will learn how to use the built-in Python help system. To get help for the dict class, type the following on the Python console: >>> help(dict) Let us check the help documentation for the product function: Python help () function is used to get the documentation of specified module, class, function, variables etc. This method is generally used with python interpreter console to get details about python objects. If no argument is given, the interactive help system starts on the interpreter console. In python help console, we can specify module

Python help(), The help() method is used for interactive use. It's recommenced to try it in your interpreter when you need help to write Python program and use Python modules​. Go to your Start menu (lower left Windows icon), type "Microsoft Store", select the link to open the store. Once the store is open, select Search from the upper-right menu and enter "Python". Open "Python 3.7" from the results under Apps. Select Get.

Python Programming/Self Help, You might want to search for modules in the standard library, or inspect an unknown object's functions, or perhaps you know there is a function that you have to call  The python help function is used to display the documentation of modules, functions, classes, keywords etc. The help function has the following syntax: help([object]) If the help function is passed without an argument, then the interactive help utility starts up on the console. Let us check the documentation of the print function in python console.

Help and Documentation in IPython, Depending on your interpreter, this information may be displayed as inline text, or in some separate pop-up window. Because finding help on an object is so  The console appears as a tool window every time you choose the corresponding command on the Tools menu. The main reason for using the Python console within PyCharm is to benefit from the main IDE features, such as code completion, code analysis, and quick fixes. You can use up and down arrow keys to browse through the history of executed