git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Using git from Python

From
Asheesh Laroia <asheesh@asheesh.org>
Date
May 8, 2008, 00:18 UTC
Message-ID
<alpine.DEB.1.10.0805071612510.26718@sf.creativecommons.org>
>From a Python app, I want to read and write a git repository.  It seems 

from Luiz Fernando's post at http://blog.cpu.eti.br/?p=91 that the efforts to Pythonize libgit have stalled.

On #git, I was advised to simply call the git command suite. That's fine, and I can do it using the subprocess module in Python - but since I figured others may have done this also, does anyone know of a Python module that wraps some git commands? I'm thinking if others have gone down this path, they might have code that e.g. raises Exceptions when the git commands fail for some reason.

What have others on this list done lately for using git from Python?
-- Asheesh.
-- 
You will reach the highest possible point in your business or profession.
Next: Eric Hanchrow
Message 1 of 7 in “Using git from Python”
  1. Asheesh LaroiaMay 8, 2008
  2. Eric HanchrowMay 8, 2008
  3. David AguilarMay 8, 2008
  4. DillMay 10, 2008
  5. Asheesh LaroiaMay 12, 2008
  6. Steve FrécinauxMay 13, 2008
  7. Steve FrécinauxMay 14, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.