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.0.2.tar.gz (915.3 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.0.2-py3-none-any.whl (917.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: is_burner_email-1.0.2.tar.gz
  • Upload date:
  • Size: 915.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for is_burner_email-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d23976894700a14c936964a19680f0e93093a5a522b46eaf56d2b1a0fb888cba
MD5 196d8d3b8c76e6224c33044ffa8081b9
BLAKE2b-256 543bbe9601ca21a876e2122b5da54aa76ca2d68cdf494b7761df81c7855d626f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for is_burner_email-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c7efa3f24318ae4467fbbfbf55f8610498483acdb86d4d090a7455c1ebb63928
MD5 297ed47645eb60fd888410c4d9952350
BLAKE2b-256 53b987ce20c1192d7095a6d3610ae46a855eaa254759a34adb63df7557f5cdf6

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