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.
A Python library for email suggestions and validations.
Install from PyPI with pip by typing in your favorite terminal:
This will install persian-names
(for generating random names).
pip install emailtools
Let's take a look at what an example test case would look like using emailtools
.
Note: You can use the name of email providers or their domains for the first argument.
from emailtools import generate
# generate('EmailProvider', 'FirstName', 'LastName', BirthYear)
generate() # Generates a random email
# Example: Reza.Mahmoudi_2023@yahoo.com
generate('gmail') # Generates a random Gmail
# Example: Jafari_Niloufar@gmail.com
generate('gmail.com', 'Arash', 'Amiri')
# Example: Amiri-Arash1@gmail.com
generate('Outlook', 'Bita', 'Alipour', 1995)
# Example: BitaAlipour.1995@outlook.com
from emailtools import generate
for i in range(10):
print(generate('Gmail', 'Saman', 'Rezaei', 1980))
# SamanRezaei@gmail.com
# Rezaei_Saman_1980@gmail.com
# Rezaei_Saman@gmail.com
# RezaeiSaman_5@gmail.com
# Saman_Rezaei_1980@gmail.com
# Rezaei.Saman@gmail.com
# RezaeiSaman7@gmail.com
# Saman-Rezaei_1@gmail.com
# Rezaei_Saman@gmail.com
# Saman.Rezaei1980@gmail.com
from emailtools import validate
validate('Anahita.Faramarzi@gmail.com') # True
validate('Fariborz_Jalali20.gmail.com') # False
validate('Mohammadrezaei-Arash7@gmail') # False
emailtools
is available under the MIT license.
FAQs
A Python library for email suggestions and validations.
We found that emailtools 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.