【问题标题】:github3.py v1.3.0 AttributeError: iter_reposgithub3.py v1.3.0 AttributeError: iter_repos
【发布时间】:2019-06-24 10:25:03
【问题描述】:

我正在尝试遍历私人组织中的所有存储库。以下是一些在我的机器(Windows 10、Python 3.6.5)上无法运行的示例代码:

import github3

session = github3.login(token = "A token that works with other github3.py functions and also has all permissions for testing")
org = session.organization("private organization name")
repos = list(org.iter_repos(type = "all"))

当我运行它时,我得到: 属性错误:iter_repos 回溯指向我调用 iter_repos 的第 5 行。

【问题讨论】:

    标签: python github github3.py


    【解决方案1】:

    我相信你想要

       org.repositories(type="all")
    

    iter_repos 来自 pre-1.0 github3.py

    【讨论】:

      猜你喜欢
      • 2015-12-27
      • 2014-05-06
      • 1970-01-01
      • 2019-06-28
      • 2015-11-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多