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 ishttps://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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| ded_sdk-0.1.0.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ded_sdk-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
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
|