Skip to main content

ded_sdk

ded_sdk is a Python SDK for detecting disposable email addresses using the Disposable Email Detector API. It provides a simple interface to validate email addresses and determine if they are disposable.

Features

  • Validate email addresses for disposability.
  • Retrieve detailed information about the email domain.
  • Easy integration with Python applications.

Installation

Install the SDK using pip:

pip install ded_sdk

Usage

First, import the DisposableEmailClient and initialize it with your API key:

from ded_sdk import DisposableEmailClient

api_key = "your-api-key"
client = DisposableEmailClient(api_key)

To validate an email address:

email = "example@tempmail.com"
result = client.validate(email)

if result["disposable"]:
    print(f"{email} is disposable.")
else:
    print(f"{email} is not disposable.")

The validate method returns a dictionary with the following keys:

  • disposable: Boolean indicating if the email is disposable.
  • domain: The domain of the email address.
  • source: Source of the information (e.g., "crawled").
  • confidence: Confidence score between 0 and 1.

API Reference

DisposableEmailClient(api_key: str, base_url: str = "https://ded.gossorg.in/v1")

Initializes the client with your API key.

  • api_key: Your API key for authentication.
  • base_url: Base URL of the API (default is https://ded.gossorg.in/v1).

validate(email: str) -> dict

Validates the provided email address.

  • email: The email address to validate.

Returns a dictionary with the validation result.

License

This project is licensed under the MIT License.

Metadata

Release files for ded-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ded-sdk 0.1.0
File Size Uploaded Provenance Actions
ded_sdk-0.1.0.tar.gz 3.0 kB Without provenance Details for ded_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ded-sdk 0.1.0
File Interpreter ABI Platform Actions
ded_sdk-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for ded_sdk-0.1.0-py2.py3-none-any.whl

Total release size: 6.5 kB

Release files / ded_sdk-0.1.0.tar.gz

Download URL ded_sdk-0.1.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d3799426bdabc2d4f4fad9f398cde032fb472c418b3a7221fae6096ae8c5e4e0
BLAKE2b-256 checksum
How to use checksums
49d884957bfc51ecc0afdba86c510ea8f3090f8c893a3edd788b943b51d277bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release files / ded_sdk-0.1.0-py2.py3-none-any.whl

Download URL ded_sdk-0.1.0-py2.py3-none-any.whl
Size 3.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8cf2ee7942f536a75f046e3ee65885c3044d787579415bc8efb57ee3c0573b78
BLAKE2b-256 checksum
How to use checksums
68684de395ba3beb7d05d699030c2e89f0d294c6de6b000537dc22306c454f8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Security for ded-sdk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page