V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
kidlfy
V2EX  ›  Python

Python 操作 github 的库

  •  
  •   kidlfy · 2019-02-28 17:21:15 +08:00 · 2052 次点击
    这是一个创建于 1877 天前的主题,其中的信息可能已经有所发展或是发生改变。

    大佬求教 python 操作 github 好用的库
    包括 clone,checkout,pull 就好
    现在用的 gittle
    一直在报 keyerror
    感觉也不是 auth 问题 因为有的就 clone 下来了,有的 clone 一半就报 keyerror
    救命啊
    我就是想 pull 项目而已啊

    6 条回复    2019-03-02 00:57:35 +08:00
    kisara
        1
    kisara  
       2019-02-28 17:31:48 +08:00
    自己写一个
    Alfons
        2
    Alfons  
       2019-02-28 17:38:33 +08:00
    os.call
    kidlfy
        3
    kidlfy  
    OP
       2019-02-28 17:40:43 +08:00
    @Alfons 是的 迫不得已 我也在用 os 了
    feelinglucky
        4
    feelinglucky  
       2019-02-28 19:31:02 +08:00
    有个叫 GitPython 的 Library 可以看看 https://gitpython.readthedocs.io/en/stable/
    zilili
        5
    zilili  
       2019-02-28 19:47:29 +08:00 via Android
    gitpython 老哥写完能分享下吗
    lizhuoli
        6
    lizhuoli  
       2019-03-02 00:57:35 +08:00 via iPhone
    ……你这题目和 GitHub 没关系,你要的是操作 Git 的库,我还以为你想动态 fork 仓库或者 star 呢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2760 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 02:09 · PVG 10:09 · LAX 19:09 · JFK 22:09
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.