Skip to main content

Gmail OTP retrieval via IMAP IDLE for DNSE

Project description

dnse-emailotp

Gmail OTP retrieval via IMAP IDLE for DNSE.

Install

pip install dnse-emailotp

Quick Start

from dnse_email_otp import ImapListener, extract_otp

with ImapListener("you@gmail.com", "app-password") as listener:
    msg = listener.wait_for_new_message(timeout=60)
    if msg:
        otp = extract_otp(msg.body_text)
        print(otp)  # "510345"

Or use the convenience helper:

from dnse_email_otp import wait_for_otp

otp = wait_for_otp("you@gmail.com", "app-password", timeout=60)
print(otp)  # "510345"

Requirements

  • Python >= 3.10
  • Gmail account with App Password (required when 2FA is enabled)

License

Licensed under PolyForm Noncommercial 1.0.0.

Free for personal and noncommercial use. For commercial licensing, contact DNSE.

Project details


Download files

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

Source Distribution

dnse_emailotp-0.1.0.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

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

dnse_emailotp-0.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file dnse_emailotp-0.1.0.tar.gz.

File metadata

  • Download URL: dnse_emailotp-0.1.0.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dnse_emailotp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2843b8f46ab05d4d48748f228f90f6854289566cab091ccda585a13eb1ba38c2
MD5 17dc8a0df5674f239c82aa7a52382bf0
BLAKE2b-256 1e4f468e077b8caf8802383e44f97778b9916afb4c324500540d813cf54c685e

See more details on using hashes here.

Provenance

The following attestation bundles were made for dnse_emailotp-0.1.0.tar.gz:

Publisher: release.yml on dnse-tech/dnse-emailotp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: dnse_emailotp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dnse_emailotp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92accb981cbcc73882f399811764b0bb0926924f94ad1e22a453a21a358c45af
MD5 0859c803a5cf034b1839ebbc550668f9
BLAKE2b-256 70f852efc07e3e24a3f05eaf8673f73a5acd8e44b0393cef6e857a209250a1d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for dnse_emailotp-0.1.0-py3-none-any.whl:

Publisher: release.yml on dnse-tech/dnse-emailotp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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