Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Emailfy is a powerful Python package designed for comprehensive email address validation. It goes beyond basic syntax checks, providing advanced validation features and deliverability checks to ensure that email addresses are not only correctly formatted but also deliverable in a real-world environment.
Emailfy is a Python package designed for comprehensive email address validation and checking the deliverability of email addresses. It goes beyond basic syntax checks, providing advanced validation features and deliverability checks to ensure that email addresses are not only correctly formatted but also deliverable in a real-world environment.
Key Features:
Use Cases:
emailfy
for thorough validation.Additional Features:
Ensure your application's email handling is reliable and secure with emailfy
— the ultimate solution for email validation, deliverability checks, and customizable options.
You can install Emailfy using pip
:
pip install emailfy
from emailfy import validate_email, EmailNotValidError
try:
validated_email = validate_single_email("user@example.com")
print("Email is valid:", validated_email.normalized)
except EmailNotValidError as e:
print("Email is not valid:", str(e))
from emailfy import validate_email, EmailNotValidError, ValidatedEmail
emails_to_validate = ["user@example.com", "exe@exemplocom"]
try:
validated_emails = validate_email(emails_to_validate)
print(validated_emails)
except EmailNotValidError as e:
print(f"Error details: {e.details}")
print(f"Full exception: {str(e)}")
from emailfy import caching_resolver, validate_email, EmailNotValidError
# Configure a custom resolver with a longer timeout
custom_resolver = caching_resolver(timeout=20)
try:
validated_email = validate_email("user@example.com", dns_resolver=custom_resolver)
print("Email is valid:", validated_email.normalized)
except EmailNotValidError as e:
print("Email is not valid:", str(e))
from emailfy import SPECIAL_USE_DOMAIN_NAMES, validate_email, EmailNotValidError
try:
validated_email = validate_email("user@example.com", globally_deliverable=False)
print("Email is valid:", validated_email.normalized)
except EmailNotValidError as e:
print("Email is not valid:", str(e))
Emailfy provides global attributes that you can adjust:
ALLOW_SMTPUTF8
ALLOW_QUOTED_LOCAL
ALLOW_DOMAIN_LITERAL
GLOBALLY_DELIVERABLE
CHECK_DELIVERABILITY
TEST_ENVIRONMENT
DEFAULT_TIMEOUT
Refer to the documentation for detailed information on each configuration attribute.
If you find a bug, have questions, or want to contribute, please check our contribution guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Emailfy is a powerful Python package designed for comprehensive email address validation. It goes beyond basic syntax checks, providing advanced validation features and deliverability checks to ensure that email addresses are not only correctly formatted but also deliverable in a real-world environment.
We found that emailfy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.