Ben Chuanlong Du's Blog

It is never too late to learn.

Hands on Dulwich

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

  1. The git command (and thus Dulwich) accepts URLs both with and without the trailing .git

Hands on GitPython

Tips and Traps

  1. GitPython is a wrapper around the git command. It requires the git command to be on the search path in order to work. Also, sometimes it is easier to call the git command via subprocess.run directly instead of using GitPython.

  2. The git command (and thus GitPython) accepts URLs both with and without the trailing .git

Tips on PyPy

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Installation

  1. Download PyPy from https://www.pypy.org/download.html.

  2. Unzip it.

  3. Install pip.

    :::bash /path/to/pypy -m ensurepip /path/to/pypy -m pip install ...

Packages Failed to Install

pytype …