我注意到GitHub
API 有一个eTag
可用于返回标签以来的更改。 github3.py
有办法做到这一点,但我更喜欢PyGithub
,因为它感觉更直观。
这个功能存在吗?如果没有,还有其他推荐的图书馆吗?
Not right now, unfortunately. EDIT: I could be wrong. Looks like Add Conditional Request and Data Persistence Support Alternative Solution by akfish · Pull Request #193 · PyGithub/PyGithub might have added it.
Here are some related issues for that project. Looks like they are looking for contributors. There's only 3 folks in https://github.com/orgs/PyGithub/people as of Mar 2018.
More generally, Caching Github API calls might be helpful to roll your own or use for implementing inside PyGithub.