Skip to main content

Fast, offline burner / disposable email detection with three-list (blacklist/whitelist/graylist) classification.

Project description

is-burner-email (Python)

Fast, offline detection of burner / disposable emails.

  • Offline. Domain lists bundled inside the wheel. No network calls at runtime.
  • Zero runtime dependencies.
  • Three lists. blacklist (burners), whitelist (always allowed), graylist (email alias / forwarding services — blocked only in strict mode).
  • Typed (ships py.typed). Python 3.9+.

Install

pip install is-burner-email

Usage

from is_burner_email import is_burner, check

is_burner("user@mailinator.com")                # True
is_burner("user@gmail.com")                     # False
is_burner("user@duck.com")                      # False (normal mode)
is_burner("user@duck.com", mode="strict")       # True

check("user@duck.com", mode="strict")
# {
#   'burner': True,
#   'domain': 'duck.com',
#   'list': 'graylist',
#   'reason': 'graylisted-strict'
# }

Runtime overrides

from is_burner_email import add_to_blacklist, add_to_whitelist

add_to_blacklist("badactor.example")
add_to_whitelist("our-corporate-domain.example")

Whitelist always wins over blacklist.

CLI

burner user@mailinator.com
# BURNER (blacklist): mailinator.com [blacklisted]

burner user@duck.com --strict --json
# {"burner": true, "domain": "duck.com", "list": "graylist", "reason": "graylisted-strict", "mode": "strict"}

burner --stats

Exit codes: 0 clean, 1 burner, 2 invalid input.

License

MIT

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

is_burner_email-1.3.4.tar.gz (915.9 kB view details)

Uploaded Source

Built Distribution

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

is_burner_email-1.3.4-py3-none-any.whl (917.6 kB view details)

Uploaded Python 3

File details

Details for the file is_burner_email-1.3.4.tar.gz.

File metadata

  • Download URL: is_burner_email-1.3.4.tar.gz
  • Upload date:
  • Size: 915.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for is_burner_email-1.3.4.tar.gz
Algorithm Hash digest
SHA256 66f8d81b9a17f1e68dc83948c16ce64d015a51f23a01b1751caf92cbcbda5264
MD5 3202c37cbcd9a1ef77bce348c49b79a1
BLAKE2b-256 2e3d8b08c98bc0606d9c14bb120f5d467d04a61eee41d2731b0f940c37b65fcb

See more details on using hashes here.

Provenance

The following attestation bundles were made for is_burner_email-1.3.4.tar.gz:

Publisher: release.yml on kristijandraca/is-burner-email

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

File details

Details for the file is_burner_email-1.3.4-py3-none-any.whl.

File metadata

  • Download URL: is_burner_email-1.3.4-py3-none-any.whl
  • Upload date:
  • Size: 917.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for is_burner_email-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d923eea386eac7cfba4c6ae8bf53d7f832d55e3d2a9907ea442ee68ce6917afb
MD5 f170af39262f0ab2e2909ea42355d9a3
BLAKE2b-256 da134a71b926c5db69a36c1db73b539c3091f41760dde55ba0e3a62269f5f858

See more details on using hashes here.

Provenance

The following attestation bundles were made for is_burner_email-1.3.4-py3-none-any.whl:

Publisher: release.yml on kristijandraca/is-burner-email

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