推荐学习书目
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
yazoox
V2EX  ›  Python

大家有用过 Python 访问 github 的 API 么?

  •  
  •   yazoox · Apr 2, 2018 via Android · 3288 views
    This topic created in 2989 days ago, the information mentioned may be changed or developed.

    如题,跑自动化脚本,

    需要用 Python 访问公司内部 git 的 API,比如创建一个 branch,更改一个配置文件并提交进去。完毕。

    剩下的,然后有对应监视的 Jenkins 会触发 ci 去跑测试。

    楼主找到一个 pygithub 的包,虽然有 API 文档,可是基本没有例子,用起来好头疼。

    有没有兄弟姐妹也有这个类似需求,你们咋解决的?

    3 replies    2018-04-03 12:22:58 +08:00
    hcymk2
        1
    hcymk2  
       Apr 2, 2018
    你是要 git 还是 github 的这个得说清楚。
    yazoox
        2
    yazoox  
    OP
       Apr 2, 2018 via Android
    @hcymk2 github
    lioncui
        3
    lioncui  
       Apr 3, 2018
    直接 requests 封装一下就好啦,github 作为全世界最优秀的 Restful 设计,还是很优雅的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5554 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 01:33 · PVG 09:33 · LAX 18:33 · JFK 21:33
    ♥ Do have faith in what you're doing.