Note: dulwich is not feature complete yet and the development of the project is extremely slow. It is suggested that you use other Python packages instead. For more discussions, please refer to Git Implementations and Bindings in Python .
Tips and Traps¶
- The
git
command (and thus Dulwich) accepts URLs both with and without the trailing.git
Hands on GitPython
Tips and Traps¶
GitPython is a wrapper around the
git
command. It requires thegit
command to be on the search path in order to work. Also, sometimes it is easier to call thegit
command viasubprocess.run
directly instead of using GitPython.The
git
command (and thus GitPython) accepts URLs both with and without the trailing.git
Check Whether a File Is a Text File in Python
python-magic¶
python-magic is the recommended library to use for checking whether a file is a text file.
Documentation Generating Tool for Python
Tips on PyPy
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Installation
-
Download PyPy from https://www.pypy.org/download.html.
-
Unzip it.
-
Install pip.
:::bash /path/to/pypy -m ensurepip /path/to/pypy -m pip install ...