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.6.tar.gz (916.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.3.6-py3-none-any.whl (918.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: is_burner_email-1.3.6.tar.gz
  • Upload date:
  • Size: 916.3 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.6.tar.gz
Algorithm Hash digest
SHA256 5a601055420f3cc22bb25be76813314f0ceded31cec51a489e963b453d2239dc
MD5 ad3d10e6090253e8511039554c385712
BLAKE2b-256 728bb801080f78b3089ec7e5ad66c02055c6d41052de7502fb975f75c60d2107

See more details on using hashes here.

Provenance

The following attestation bundles were made for is_burner_email-1.3.6.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.6-py3-none-any.whl.

File metadata

  • Download URL: is_burner_email-1.3.6-py3-none-any.whl
  • Upload date:
  • Size: 918.0 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7f3176ec53f7d193bbe36bc5b8940d2e4a31b116c779155e7ed0db0480f9ffad
MD5 9c3f60d67fa4425b1715f50d9d255b75
BLAKE2b-256 0248e31d0a4b9d11c91519ddaabf3be9e2a4d3c66b4e0234bad8a985e09c4a0c

See more details on using hashes here.

Provenance

The following attestation bundles were made for is_burner_email-1.3.6-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