PyCharm intellisense for boto3

前端 未结 8 1243
长发绾君心
长发绾君心 2021-02-18 15:49

having problems seeing full intellisense (code completion) options in PyCharm. working with python 3.4 on Windows. the suggests are partially working:

import bot         


        
8条回答
  •  隐瞒了意图╮
    2021-02-18 16:34

    I was frustrated with the same issue. So I decided to parse boto3 documentation and generate wrapper classes from the documentation. Here is the link to project https://github.com/gehadshaat/pyboto3

    To install it

    pip install pyboto3
    

    To use it

    import boto3
    s3 = boto3.client('s3')
    """ :type : pyboto3.s3 """
    # s3. -> will give you autocomplete for s3 methods in pycharm
    

    Make sure that you first:

    1. Install pyboto3 -> pip install pyboto3 | pip3.x install pyboto3
    2. Check your interpreter settings and verify that you see pyboto3 on the list
    3. Do a File -> Invalidate Caches/Restart

    After Pycharm restarts you should see intellisense working in your favor and all of the available methods for the service (in the case above s3) you are trying to use available to you!

提交回复
热议问题