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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2843b8f46ab05d4d48748f228f90f6854289566cab091ccda585a13eb1ba38c2
|
|
| MD5 |
17dc8a0df5674f239c82aa7a52382bf0
|
|
| BLAKE2b-256 |
1e4f468e077b8caf8802383e44f97778b9916afb4c324500540d813cf54c685e
|
Provenance
The following attestation bundles were made for dnse_emailotp-0.1.0.tar.gz:
Publisher:
release.yml on dnse-tech/dnse-emailotp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dnse_emailotp-0.1.0.tar.gz -
Subject digest:
2843b8f46ab05d4d48748f228f90f6854289566cab091ccda585a13eb1ba38c2 - Sigstore transparency entry: 1222253746
- Sigstore integration time:
-
Permalink:
dnse-tech/dnse-emailotp@5b7a38775405491d01a3adacac88e20aea5c6a67 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/dnse-tech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5b7a38775405491d01a3adacac88e20aea5c6a67 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92accb981cbcc73882f399811764b0bb0926924f94ad1e22a453a21a358c45af
|
|
| MD5 |
0859c803a5cf034b1839ebbc550668f9
|
|
| BLAKE2b-256 |
70f852efc07e3e24a3f05eaf8673f73a5acd8e44b0393cef6e857a209250a1d3
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dnse_emailotp-0.1.0-py3-none-any.whl -
Subject digest:
92accb981cbcc73882f399811764b0bb0926924f94ad1e22a453a21a358c45af - Sigstore transparency entry: 1222253838
- Sigstore integration time:
-
Permalink:
dnse-tech/dnse-emailotp@5b7a38775405491d01a3adacac88e20aea5c6a67 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/dnse-tech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5b7a38775405491d01a3adacac88e20aea5c6a67 -
Trigger Event:
push
-
Statement type: