Source Code: https://github.com/abdullahselek/authenticatorpy
A pure Python library which provides one time password like Google Authenticator. It works with Python versions Python 3.x. It is designed to have a simple interface usage without no dependencies.
It also has a CLI which you can simulate creating tokens on your terminal.