【发布时间】:2020-08-20 23:28:47
【问题描述】:
我需要一个为gitlab 事件提供设施的python 库。例如,我需要使用该库运行一个小型 python 应用程序,如果 gitlab 发生任何更改,我需要这个 python 应用程序做出相应的反应。
一个例如场景:如果有人提交到一个分支(或存储库中的任何地方),我需要提取最新的更改。
gitlab 是否有 python 库?
【问题讨论】:
我需要一个为gitlab 事件提供设施的python 库。例如,我需要使用该库运行一个小型 python 应用程序,如果 gitlab 发生任何更改,我需要这个 python 应用程序做出相应的反应。
一个例如场景:如果有人提交到一个分支(或存储库中的任何地方),我需要提取最新的更改。
gitlab 是否有 python 库?
【问题讨论】:
python-gitlab 模块:
https://github.com/python-gitlab/python-gitlab
文档:https://python-gitlab.readthedocs.io/en/stable/index.html
对于管理事件: https://python-gitlab.readthedocs.io/en/stable/gl_objects/events.html
pyapi-gitlab 是 Gitlab API 的 python 包装器:
https://github.com/pyapi-gitlab/pyapi-gitlab
python-gitlab3:整个 GitLab API 的 Python 包装器:https://github.com/doctormo/python-gitlab3
【讨论】: