PyCharm intellisense for boto3

前端 未结 8 1246
长发绾君心
长发绾君心 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:36

    The room's getting a little crowded here, but I also have created a boto3 typing solution (GitHub link), boto3_type_annotations. I took the pyboto3 approach and parsed the docstrings of service objects and then programmatically wrote class definitions for them and annotated arguments and return types with the typing module. Unlike pyboto3 I created everything including service resources, paginators, and waiters. There's also an option where I left the docstrings in, so PyCharm's quick documentation will work. But fair warning, that package is really big.

    # Without docs
    pip install boto3_type_annotations
    
    # Or with docs
    
    pip install boto3_type_annotations_with_docs
    

提交回复
热议问题