MutaPath.
stripext
For example, Path('/home/guido/python.tar.gz').stripext() returns Path('/home/guido/python.tar').
Path('/home/guido/python.tar.gz').stripext()
Path('/home/guido/python.tar')