parameters: (self, name)
return_statement: return {
              'name': name,
              'author': part_model.author,
              'version': part_model.version,
              'doc': part_model.doc,
          }
docstring: 获取策略部件信息
  
          :param str name: 部件名称
docstring_summary: 获取策略部件信息
docstring_tokens: 获取策略部件信息
function: def get_part_info(self, name):
          """获取策略部件信息
  
          :param str name: 部件名称
          """
          part_model = self._session.query(PartModel).filter_by(name=name).first()
          checkif(part_model is None, name, PartNotFoundError, cause='仓库中不存在')
          return {
              'name': name,
              'author': part_model.author,
              'version': part_model.version,
              'doc': part_model.doc,
          }
function_tokens: def get_part_info ( self , name ) : part_model = self . _session . query ( PartModel ) . filter_by ( name = name ) . first ( ) checkif ( part_model is None , name , PartNotFoundError , cause = '仓库中不存在') return { 'name' : name , 'author' : part_model . author , 'version' : part_model . version , 'doc' : part_model . doc , }