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.1.0.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.1.0-py3-none-any.whl (917.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: is_burner_email-1.1.0.tar.gz
  • Upload date:
  • Size: 915.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.1.0.tar.gz
Algorithm Hash digest
SHA256 b58f428fd6f7476e25b82484b67b409514a370fc74083e38b7f394e28bbe3d30
MD5 088a3b5507ef094a2f6118c3fecf9a7d
BLAKE2b-256 1e7ac7b895afeb35e55ece01f34648781b59498c68ec72d8ed6a445e9890b83e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: is_burner_email-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 917.1 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10c69f5af12f935dbdcdf9ff8e2d6a72dd6385db25f0244110223076ef1c5777
MD5 d8155321da8005940dda922ae4c4efaa
BLAKE2b-256 ff376a4ab4e44413a3836e6a44541799d29ee78b73c571404951e9f860316ce6

See more details on using hashes here.

Provenance

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