For openSUSE Leap 15.2 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:Rotkraut:Data/openSUSE_Leap_15.2/home:Rotkraut:Data.repo
zypper refresh
zypper install python-ansi2html
For 15.5 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:Rotkraut:Data/15.5/home:Rotkraut:Data.repo
zypper refresh
zypper install python-ansi2html
For 15.4 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:Rotkraut:Data/15.4/home:Rotkraut:Data.repo
zypper refresh
zypper install python-ansi2html