The team behind ptypes is using the Mercurial software to manage the source code.
hg clone https://archive.srchub.org/hg/ptypes
Find here more details on how to access ptypes source code.