Skip to main content

Simple all-in-one 2FA helper for Python

Project description

Easy2FA

Easy2FA: A lightweight Python library for adding Two-Factor Authentication (2FA) with TOTP. Quickly generate and verify codes compatible with Google Authenticator, Authy, and other apps. Simple, secure, and easy to integrate into any Python project.

A simple, all-in-one 2FA helper for Python — TOTP, QR codes, backup codes, and rate limiting.

Install

pip install easy2fa

## USAGE
from easy2fa import Easy2FAAccount

acct = Easy2FAAccount.create(issuer="MyApp", label="user@example.com")
print(acct.current_code())

MIT License

Copyright (c) 2025 Mohammed Amine DAMRI

Permission is hereby granted...
>>>>>>> 8791791 (Initial commit: easy2fa library)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

damri_2fa-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file damri_2fa-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: damri_2fa-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.6

File hashes

Hashes for damri_2fa-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be9fcc8a292498548c99bf9db5382e22afffaea60ef493b2e8f5878f2d677281
MD5 003f35a407cac31a4996ad9f353fa6c7
BLAKE2b-256 38a0a37dc48c146d988829fe047e26c28e6ed1b5c9742f01b8f470418c9b3a42

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page