ps StaSh uses python to do git so look at the source for StaSh

#DULWICH try: import dulwich ...