Saravanan666/pypi-org huggingface dataset:
Package: email-keyword-matcher
READMESend an email and perform an action when a user responds with one of a set of keywords.This currently has been tested using Gmail as aless secure app.FeaturesRuns a callback function if the email reply is a keywordEmail the replier saying no keyword was found if the reply email doesn't contain a keywordCheck if an email has been replied toUsagepipinstallemail-keyword-matcherfromemail_keyword_matcherimportEmailKeywordMatcherimporttimehost='smtp.gmail.com'port=567sender_email='foo@bar.com'receiver_email='bar@baz.com'password='super-secret-password'# Create an `EmailKeywordMatcher` object## Note if you don't pass in credentials, you will be prompted# for themekm=EmailKeywordMatcher(sender_email,password,host,port)# Create keywords that will be looked for in the reply# and associate a callback with themekm.add_keyword('done',lambda:print("'done' called"))ekm.add_keyword('snooze',lambda:print("'snooze' called"))ekm.add_keyword('cancel',lambda:print("'cancel' called"))# Send and emailemail_subject="Checkin"email_content="Make sure to checkin"ekm.send(receiver_email,email_subject,email_content)# Check if that email has been replied towhilenotekm.is_response(receiver_email,email_subject):print("No email back yet")time.sleep(5)# Perform the callback for the found keyword, or# send another email to `receiver_email` saying that# a valid keyword was not found.ekm.process_received(receiver_email,email_subject)MetaAudrow Nash -@audrow-audrow@hey.comDistributed under the MIT license. SeeLICENSE.txtfor more information.https://github.com/audrow/email-keyword-matcher
Package: emaillib
A simple library to ease the sending of emails with utf8 and attachments.Documentation:https://emaillib.readthedocs.org/en/latestDevelopment WorkflowThe workflow supports the following stepslinttestbuilddocumentuploadgraphThese actions are supported out of the box by the corresponding scripts under _CI/scripts directory with sane defaults based on best practices.
Sourcing setup_aliases.ps1 for windows powershell or setup_aliases.sh in bash on Mac or Linux will provide with handy aliases for the shell of all those commands prepended with an underscore.The bootstrap script creates a .venv directory inside the project directory hosting the virtual environment. It uses pipenv for that.
It is called by all other scripts before they do anything. So one could simple start by calling _lint and that would set up everything before it tried to actually lint the projectOnce the code is ready to be delivered the _tag script should be called accepting one of three arguments, patch, minor, major following the semantic versioning scheme.
So for the initial delivery one would call$ _tag –minorwhich would bump the version of the project to 0.1.0 tag it in git and do a push and also ask for the change and automagically update HISTORY.rst with the version and the change provided.So the full workflow after git is initialized is:repeat as necessary (of course it could be test - code - lint :) )codelinttestcommit and pushdevelop more through the code-lint-test cycletag (with the appropriate argument)buildupload (if you want to host your package in pypi)document (of course this could be run at any point)Important InformationThis template is based on pipenv. In order to be compatible with requirements.txt so the actual created package can be used by any part of the existing python ecosystem some hacks were needed.
So when building a package out of thisdo notsimple call$ python setup.py sdist bdist_eggas this will produce an unusable artifact with files missing.Instead use the provided build and upload scripts that create all the necessary files in the artifact.Project FeaturesHandles subject and message body as utf-8 by defaultHandles html and plain textHandles attachments either as list or comma delimited value argumentsSupports CC and BCCSimply validates the provided recipient addressesHistory0.0.1 (16-09-2017)First code creation1.0.0 (07-07-2021)Dropped support for python2.7, updated the template and setup a pipeline for release.
Package: email-magnet-nestorsan
Email MagnetEmail magnet is a simple program that, given a domain name and a personal name, is able
to guess and validate the email adress of such person.
In order to do that, it creates list with all the possible emails schemes based on the first name,
last name, middle name and initials of those.
When the list is crated, Email Magnet checks if the emails are valid and if they exist.How to start 🚀Just keep reading. You're in the right placePre-requisites 📋You can install all the requirements with the following command: " "You need the following dependencies to be installed for the project to run correctly.astroid==2.4.2
certifi==2020.6.20
chardet==3.0.4
dnspython==2.0.0
filelock==3.0.12
idna==2.10
isort==5.6.4
lazy-object-proxy==1.4.3
mccabe==0.6.1
py3-validate-email==0.2.10
pylint==2.6.0
requests==2.24.0
six==1.15.0
toml==0.10.1
urllib3==1.25.11
wrapt==1.12.1Instalación 🔧1 - Clone theGit repository2 - Create a virtual environment for your project and activate it3 - Install the requirements.txt file_4 - In the command line, in the foler wher you downloaded the Git Repository, write the command" python email_magnet.py -d 'yourdomainname.com' -f 'YourFirstName' -l 'YourLastName' "5 - Wait a little bit to see how the program generate a list of possible emails and check against the server to give you the active oneTestsThe tests aren't created yetDeploymentThis project is not intended to be deployed but you can try at your own riskBuild with 🛠️This project has been built using Python with VScodeContributing 🖇️Feel free to contribute and improve this project if you like.Wiki 📖There is no wiki yet.Autor ✒️This project was created byNestor Sanchez-End to end-nestor-sanLicense 📄This project is licensed under GNU GENERAL PUBLIC LICENSE v3. Please, checkLICENSE.mdfor more details.Say thank youIf you like the project, you can say thanks, give a star or fork the project.This was created with ❤️ byNestor-san😊
Package: emailme
emailmeA Python module to email myself from Python scripts and the command line.installation$pipinstallemailmeintended usageemailmeis intended to be used to quick-fire send an email to oneself from Python scripts and from the command line.initial setupSending email requires you to login to an SMTP server. This often means a password is required.To get started, you will need to store your username and password in a file that is read-write only by you.emailmeprovides a convenience way to get setup.$emailmestartYou will be asked for your email address and passwrod there.note about password:I strongly suggest NOT storing your regular email password. Instead, you should be using an app-specific password that you rotate regularly. Gmail offers such a functionality, and is highly recommended. Check with your email host provider for more detail.Upon entering your credentials, a file will be written to disk at~/.credentials/emailme.json. This email is only read/write-able by you; other users of the computer are unable to read or write it.Upon this initial setup, you will now be able to useemailmeto send emails to yourself.command line usageUsage at the command line is super simple.$emailmesendmail--subject"hey"--message"what's up?"(be sure to escape your exclamation marks!)script usageYou can also import emailme and use it from a Python script.fromemailmeimportsendmailsendmail(subject='hey',message="What's up? How are you doing?")
Package: email-miner
email-minermakes it easy to mine IMAP mailboxes in a simple pythonic way. It's a thin-wrapper around the awesomeIMAPClientlibrary.Installationemail-mineris listed onPyPIand can be installed with pip:pipinstallemail-minerExamplefromemail_miner.minerimportMiner# miner acts as a context manager to ensure connections are closedwithMiner('imap.gmail.com','john@gmail.com','xyzzy')asclient:# folder switching as a context manager to ensure folder is closedwithclient.inbox(read_only=True):# get emails from the selected folder as a listemails=client.get_emails(unread_only=True,with_body=True)foremailinemails:print('Subject:',email.subject)print('From:',email.from_addresses)print('To:',email.to_addresses)# the body is already parsed# and the attachments can be accessed directlyforattachmentinemail.attachments:print('Attachment type:',attachment.content_type)print('Attachment name:',attachment.file_name)withopen(attachment.file_name,'wb')asfile:file.write(attachment.file_content)LicenseThis project is licensed under theMIT License.MIT License

Copyright (c) 2019 Niranjan Rajendran

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: emailnator
EmailnatorEmailnator is a Python wrapper for the Emailnator temporary email service. It provides a convenient way to generate temporary email addresses, retrieve inbox messages, and fetch individual messages.InstallationTo install the Emailnator package, simply run:pipinstallemailnatorTODOExapand temporary email service providershttps://mail.tm/https://temp-mail.org/https://tempmailo.com/https://www.disposablemail.com/https://internxt.com/en/temporary-email/https://temp-mail.io/https://getnada.com/https://www.fakemail.net/https://www.emailnator.com/CLI to get an email and inbox of the email in from the terminalAdd LoggingExpand the errors for better event captureAdd a proxy?To install the Emailnator package for development purposes, follow these steps:Clone the repository to your local machine using the command:gitclonehttps://github.com/repollo/Emailnator.gitNavigate to the cloned repository directory:cdEmailnatorCreate a virtual environment for the project:python-mvenvvenvActivate the virtual environment:sourcevenv/bin/activateNote: If you are using Windows, use the following command instead:venv\Scripts\activateInstall the required dependencies using pip:pipinstall-rrequirements.txtInstall the package in development mode:pipinstall-e.This will install the package in editable mode, allowing you to modify the source code and see the changes reflected immediately.UsageFirst, import theEmailnatorclass:fromemailnatorimportEmailnatorThen, create anEmailnatorinstance:emailnator=Emailnator()By default, the.envfile containing authentication tokens will be created in the same directory as theemailnator.pyfile. You can specify a custom directory using theenv_pathparameter:custom_path="/path/to/your/custom/directory"emailnator=Emailnator(env_path=custom_path)Generate a temporary email addressemail_data=emailnator.generate_email()email_address=email_data["email"][0]print(email_address)Retrieve inbox messagesinbox_data=emailnator.inbox(email_address)print(inbox_data)Get a specific messagemessage_id=inbox_data["messageData"][3]["messageID"]message_data=emailnator.get_message(email_address,message_id)print(message_data)ExamplefromemailnatorimportEmailnatoremailnator=Emailnator()# Generate an emailemail_data=emailnator.generate_email()email=email_data["email"][0]# Get existing email if generated before.email=emailnator.get_existing_email()# Get email inbox of emailemails=emailnator.inbox(email)# Select a specific email message idmessage_id=emails["messageData"][1]["messageID"]# Get the email message id contentsemail_content=emailnator.get_message(email,message_id)LicenseThis project is licensed under the MIT License.
Package: email-normalize
email-normalizeis a Python 3 library for returning a normalized email-address
stripping mailbox provider specific behaviors such as “Plus addressing”
(foo+bar@gmail.com).Exampleimportemail_normalize# Returns ``foo@gmail.com``normalized=email_normalize.normalize('f.o.o+bar@gmail.com')Currently Supported Mailbox ProvidersAppleFastmailGoogleMicrosoftProtonMailRackspaceYahooYandexZohoDocumentationhttp://email-normalize.readthedocs.orgPython Versions Supported3.7+
Package: email-notifier
email_notifierA simple email notifier for general messages or exceptions with easy environment configurationDescriptionemail_notifiercomprises two notifier classes that send emails to a given set of recipientsGeneralNotifierSends a general message to a number of recipient emails.ExceptionNotifierSends a nicely formatted exception alert with an appropriate stack trace to a number of recipient emails.Main DependenciesPython +3.6pydanticGetting StartedInstall the packagepipinstallemail_notifierSet the environment variables in case you wish wish to have default settings for your email notifierImport theGeneralNotifierand theExceptionNotifierclasses and use accordinglyfromemail_notifierimportGeneralNotifier,ExceptionNotifier# Assuming the environment variables have been set# MAIL_SERVER_HOST=127.0.0.1# MAIL_SERVER_PORT=10025# DEFAULT_SENDER_EMAIL_ADDRESS=anne@example.com# DEFAULT_SENDER_EMAIL_PASSWORD=password123123# DEFAULT_EMAIL_SUBJECT_PREFIX="Test: "# DEFAULT_EMAIL_SIGNATURE="Regards<br/>Sender"# DEFAULT_EMAIL_RECIPIENTS=paul@example.com, albert@example.comgeneral_notifier=GeneralNotifier()general_notifier.send(subject="....",body="....",recipients=["..@...com","...@...com")# if recipients are not provided, the notifier sends to the default email recipientsgeneral_notifier.send(subject="....",body="....")exception_notifier=ExceptionNotifier(is_exception_in_subject=True,subject="...",salutation="...")# The defaults also work in this case# exception_notifier = ExceptionNotifier()deffunc():"""Just a trial function with exception handling"""try:raiseIndexError("Just raising a random exception for exhibition purposes")exceptIndexErrorasexp:# an email is sent and the python logger logs the exceptionexception_notifier.notify(exp)# When the function is called, the notifier will do the needfulfunc()How to testClone the repo and enter its root foldergitclonehttps://github.com/sopherapps/email_notifier.git&&cdemail_notifierCopy the.example.envfile to.envand make appropriate edits on itcp.example.env.envCreate a virtual environment and activate itvirtualenv-p/usr/bin/python3.6env&&sourceenv/bin/activateInstall the dependenciespipinstall-rrequirements.txtRun the test commandpython-munittestEnvironment ConfigurationThe package leverages environment settings in say a.envfile or set directly.
The environment variables include the following.Environment VariableWhat it is forDefaultMAIL_SERVER_HOSTThe SMTP hostsmtp.office365.comMAIL_SERVER_PORTThe SMTP port587DEFAULT_SENDER_EMAIL_ADDRESSsender email address""DEFAULT_SENDER_EMAIL_PASSWORDsender email password""DEFAULT_EMAIL_SUBJECT_PREFIXsubject prefix""DEFAULT_EMAIL_SIGNATUREemail signature""DEFAULT_EMAIL_RECIPIENTScomma separated recipient email addresses""AcknowledgementsThisReal Python tutorial on sending emails with pythonwas very helpful.
ThisReal Python tutorial on publishing packageswas very helpfulLicenseCopyright (c) 2020Martin AhinduraLicensed under theMIT License
Package: email-notify-magic
Email-Notify-MagicSend an email after cell execution complete.Obs: Currently only used with gmail.Installpip install email-notify-magicUsageLoad the magic extension:%load_ext email_notify_magicRun the cell magic in jupyter notebook (see options bellow):%%email email@gmail.comInsert password in the prompt anddoneMake sure your email account is enable for such usage (seelinkandless-secure-apps). It is recommend not to use personal accounts.Option:Sender and receiver same email address if--tois not supplied.%%email email@gmail.comSet receiver with--to[-t]:%%email email@gmail.com --to receiver@gmail.comSet e-mail subject--subject[-s]:%%email email@gmail.com --s 'My subject'Set e-mail body--body[-b]:%%email email@gmail.com --body 'From cell x'Notice that the cell output is used if--bodyis not provided.Save password in jupyter session for latter usage--keep-password[-k]:%%email email@gmail.com --body 'From cell x' -kThe next cell evoked with%%emailwill not require the password.OthersNotification after cell execution inspired byjupyter-notify
Package: emailo
emailoemailo is a command line tool for parsing and analyzing emails from different files.
Might be helpful for scraping and investigating dumps from breaches.Installationemailo is a Python package, so I strongly recommend you to install it in separatevirtualenv.$pipinstallemailoParseParsing simple SQL dump:$emailoparse~/Dumps/example.sql
john@example.com
bill@example.net
alex@example.org
troy@example.com
...You can filter emails by domain usingendswithoptions like so:$emailoparse~/Dumps/example.sql--endswith=@example.com
john@example.com
troy@example.com
...emailo will output emails instdout, don't forget to save them somewhere:$emailoparse~/Dumps/example.sql>emails.txtDomainsSometimes you need to know which domains are most popular in your email list:$emailodomains~/Lists/emails.txt
example.com2example.net1example.org1Or you can get percentage value:$emailodomains~/Lists/emails.txt--percentage
example.com50.00%
example.net25.00%
example.org25.00%New feature requestIf there is a missing functionality that you need, don't hesitate to create anissue.
Package: emailonline-beeflow
Email Online AppThis app allows you to add 'see online' link to any email you are sending to users.ConfigurationAddemailonlinetoINSTALLED_APPSinsettings.pyfile.AddDEFAULT_MAIN_PAGE="[name of default main page to redirect]"into thesettings.pyfile.Addpath("emailonline/", include("emailonline.urls")),to the mainurls.pyfileUsageHere is an example for creating email online:email_online=EmailOnline()email_online.user=user# optionalemail_online.content=render_to_string("your_template_name.html",{...,"online_message_uid":str(email_online.id),})# prepare HTML / TXT message to send.email_online.save()HTML template example:See this<ahref="{% url 'emailonline:see_email id=online_message_uid %}'">email on webpage</a>
Package: emailotp
emailotpEmail otp simplifies email integration in Python, enabling users to send emails, facilitate OTP verification,  Enhance your app's email functionality effortlessly.Examplefromemailotpimportemailotpemailotp=emailotp()responseFromEmailOtp=emailotp.send("toemail@gmail.com")print(responseFromEmailOtp["message"])-- methodsemailotp=emailotp()responseFromEmailOtp=emailotp.sendOtp("toemail@gmail.com",123456)print(responseFromEmailOtp["message"])emailotp=emailotp()responseFromEmailOtp=emailotp.sendMessage("toemail@gmail.com","title","subject","body")print(responseFromEmailOtp["message"])emailotp=emailotp()responseFromEmailOtp=emailotp.custom("fromemail@gmail.com","passkey","toemail@gmail.com","title","subject","body")print(responseFromEmailOtp["message"])helpemailotp=emailotp()emailotp.help()AuthorsSHAIK AFRIDGetting StartedFor help getting started with Python, view our onlinedocumentation.
Package: email-permutations
Emails Permutations and Combinations from first name and last nameEmailpermutationsprovides a list of all possible combinations of email for a given first name
and last name.InstallationYou can installpermutationslibrary via pip:$ pip install email_permutationsExample Usagefrompermutationsimportemail_permuter# Specify the first name, last name and domain namefirst_name="Pratik"last_name="Dani"domain_name="gmail.com"permuted_emails=email_permuter.all_email_permuter(first_name=first_name,last_name=last_name,domain_name=domain_name)ContributionsIf you find any bugs, please feel free to open an issue or send a pull request.
Package: email_phone_block
email/phone blockA simple python function to substitute emails and phone number with dummies.Unittest included.Installpip install email_phone_blockoreasy_install email_phone_blockUsage>>> from email_phone_block import filter_email_phone, filter_email, filter_phone
>>> filter_email("So please send me an email at name@domain.com, thanks!")
'So please send me an email at xxxx@xxxxx.xxx, thanks!'
>>> filter_phone("So please call me at 333-333-3333, thanks!'")
'So please call me at xxx-xxx-xxxx, thanks!'
>>> filter_email_phone("So please call me at 333-333-3333 or email me at name@domain.com, thanks!'")
'So please call me at xxx-xxx-xxxx or email at xxxx@xxxxx.xxx, thanks!'For legacy reason you can still use from email_phone_block import blockFormat RecognizedEmailsname@domain.comname(at)domain.comname at domain.comPhone numbers333-333-33333333333333333 333 3333333 333-3333333333-3333333-3333333
Package: emailrep
Python EmailRepThis is a python 3 library and cli module for interacting with theEmailRepservice.Installationpip3 install emailrep --upgradeorpython3 -m pip install --upgrade emailrepQuick Start (cli)# setup your api key (optional)emailrepsetup-k<yourapikey># query an email addressemailrepbill@microsoft.com# report an email address (key required)emailrep--reportfoo@bar.com--tags"bec, maldoc"--description"Phishing email targeting CEO"Quick Start (python library)fromemailrepimportEmailRep# setup your api key (optional)emailrep=EmailRep('<your api key>')# query an email addressemailrep.query("bill@microsoft.com")# report an email address (key required)emailrep.report("foo@bar.com",["bec","maldoc"],"Phishing email targeting CEO")Full API docs can be foundhere.
Package: email-report-checker
RFC 7489 & 8460 SMTP Report Monitoring Utilities.Installpython3-mpipinstallemail-report-checkerNote these are for my hobby domain, do not try running them on even moderate traffic MTAsRFC 7489 Domain-based Message Authentication, Reporting, and Conformance (DMARC)First ensure your DMARC DNS TXT record containsruaandrufto request reports:_dmarc.zi.is.               3600    IN      TXT     “v=DMARC1; p=reject; pct=100; ruf=mailto:b+dmarc@zi.is; rua=mailto:b+dmarc@zi.is; adkim=s; aspf=s”Then load the reports via IMAP:dmarc-report-checkerm.zi.isb@zi.isArchive>dmarc.jsonAnd report your statisticsjq'[ .[].record.row | select(.source_ip == "68.183.35.248") | select(.policy_evaluated.dkim == "pass") | .count | tonumber] | add'dmarc.jsonjq'[ .[].record.row | select(.source_ip == "68.183.35.248") | select(.policy_evaluated.dkim == "fail") | .count | tonumber] | add'dmarc.jsonRFC 8460 SMTP TLS ReportingFirst create a DNS TXT record to request reports:_smtp._tls.zi.is.   3600    IN      TXT     "v=TLSRPTv1;rua=mailto:b+tls@zi.is"Then load the reports via IMAP:tls-report-chekerm.zi.isb@zi.isArchive>tls.jsonAnd report your statisticsjq'[.[] | [.policies[].summary["total-successful-session-count"]] | add] | add'tls.jsonjq'[.[] | [.policies[].summary["total-failure-session-count"]] | add] | add'tls.json
Package: email-router
Email RouterA straightforward and efficient inbound email router. This library allows you to route emails depending on its contents to different destinations with a concise YAML configuration. Combine "conditions" and "handlers" together to create "routes" that determine where to send each email.This library is best used alongside SendGrid'sInbound Parseor a variation of it and is a more powerful version of Mailgun'sinbound routing.Installation$python3-mpipinstallemail-router