Simple Python github library to push/pull files?

Barry Scott barry at barrys-emacs.org
Tue Jan 28 16:06:21 EST 2020



> On 28 Jan 2020, at 16:40, Chris Angelico <rosuav at gmail.com> wrote:
> 
> On Wed, Jan 29, 2020 at 3:38 AM Malcolm Greene <python at bdurham.com> wrote:
>> 
>> Any recommendations on a library providing a simple interface to Github
> for basic push/pull type of actions? I know there's a native GitHub RESTful
> API but wondering if anyone has placed a friendly Python wrapper on top of
> that interface? PyGithub supports a rich set of actions, but doesn't appear
> to provide support to push/pull files to/from a repo.
>> 
> 
> Possibly because pulling and pushing aren't GitHub operations, they're
> simple git operations. You might be able to find a Python Git library, but
> it'd probably be just as easy to subprocess it out directly.


Agreed if you only want to push and pull then running git in a subprocess
is what you should do.

If you'r needing get more complex have a look at GitPython that's on
PyPi. I found it was the best git python library when I did the research
my SCM workbench app.

Barry


> 
> ChrisA
> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 



More information about the Python-list mailing list