For those with some difficults regarding how to actually get the .py file from the bitbucket archive, my small contribution:
1 - download the repository from https://bitbucket-archive.softwareherit ... 53l0x.html
and extract it somewhere. You will end with folder with a .hg subfolder
2 - in a linux machine install mercurial (in Ubuntu: sudo apt install mercurial) (you may use Windows, but I only tested in Linux)
Using a terminal, do the following:
3 - create a temporary folder (for instance, "temp"
) and access it (cd temp)
4 - run the command "hg init ." (this will create a new mercurial repo in the local folder - dont forget the dot)
5- copy the .hg file from the folder created in step 1 to the new temp folder created in step 3
6 - form inside the temp folder, start a mercurial webserver with the command "hg serve".
7 - It will give you an error regarding some requirements (revlog-compression-zstd sparserevlog!). Its ok.
8 - edit the file .hg/requires and remove the entries related to the previous step (revlog-compression-zstd and sparserevlog)
9 - run "hg serve" again. It shoud give you a url (for instance, localhost:8000). Open that url with an web browser. You should see the repository
- Click in browse. The VL5310x.py is should be there
Hope it helps and sorry my english