In 2019, I spent about a month to write this Python cryptocurrency capital gain tax calculator.

Finally, I published this in github: https://github.com/viewplatgh/pycgt

I wish this can be helpful to those who would have to deal with CGT because of any disposal of their cryptocurrencies.