How to search help using python console

前端 未结 10 1307
长发绾君心
长发绾君心 2021-02-08 20:25

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.

10条回答
  •  野的像风
    2021-02-08 21:03

    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
                                zopyx.smartprintng.core
    collective.pdfpeek        - A Plone 4 product that generates image thumbnail
                                previews of PDF files stored on ATFile based
                                objects.
    pisa                      - PDF generator using HTML and CSS
    

    etc.

提交回复
热议问题