How to Use Standalone Invoke as a standalone OTP, 6 character, 30 second interval generator echo TOPSECRETPWD | otp.py otp.py secret.txt otp.py < secret.txt Module See example/foo.py import otp # get your secret totp = otp.totp_code( secret, interval=60, digits=8 )