pyotp is a Python library for generating and verifying one-time passwords. It can be used to implement two-factor or multi-factor authentication methods in web applications and in other systems that require users to log in. A script /usr/doc/pyotp-$VERSION/gen_totp.py is provided to generate TOTP codes. Suggested usage is to copy to ~/.local/bin/ and edit the file to define your TOTP secrets. See the comments in gen_totp.py for more details.