{"library":"pyotp","type":"library","category":null,"description":"PyOTP is a Python library for generating and verifying one-time passwords, supporting both Time-Based One-Time Passwords (TOTP) from RFC 6238 and HMAC-Based One-Time Passwords (HOTP) from RFC 4226. It is widely used to implement two-factor (2FA) or multi-factor (MFA) authentication in various systems, compatible with apps like Google Authenticator. The library is actively maintained, with its current version being 2.9.0, and follows a regular release cadence.","language":"python","status":"active","version":"2.9.0","tags":["otp","2fa","mfa","totp","hotp","authentication","security"],"install":[{"cmd":"pip install pyotp","imports":["from pyotp import TOTP","from pyotp import HOTP","import pyotp\nsecret = pyotp.random_base32()","import pyotp\nsecret = pyotp.random_hex()","import pyotp\notp_object = pyotp.parse_uri(uri_string)"]}],"homepage":null,"github":"https://github.com/pyauth/pyotp","docs":"https://pyauth.github.io/pyotp","changelog":null,"pypi":"https://pypi.org/project/pyotp/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.5,"avg_import_s":0.04,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/pyotp/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Tue Jul 28","install_tag":"verified"}}