Saravanan666/pypi-org huggingface dataset:
Package: gmail
gmail-----The 'gmail' module provides a simple wrapper around the smtplib/emailmodules to provide an easy programmatic interface for sending email usingthe GMail SMTP service.The module provides the following classes:GMail           - Basic interface to GMail SMTP serviceGMailWorker     - Background worker to send messages asynchronously(uses multiprocessing module)GMailHandler    - GMail handler for logging frameworkMessage         - Wrapper around email.Message class simplifyingcreation of email message objectsThe module also provides a cli interface to send email if run directly(python -mgmail.cli)Basic usage:>>> gmail = GMail('A.User <user@gmail.com>','password')>>> msg = Message('Test Message',to='xyz <xyz@xyz.com>',text='Hello')>>> gmail.send(msg)Note: You will need to setup an application-specific password ratherthan using your account-password - see:https://support.google.com/mail/?p=InvalidSecondFactorhttps://security.google.com/settings/security/apppasswordsThe Message class also provides support to simply generate html email andadd attachments.>>> msg = Message('Test Message',to='xyz@xyz.com',text="Hello",html="<b>Hello</b>",attachments=['img.jpg'])In Python3 messages will be unicode (utf8) encoded by default unless thetext is passed a a bytes object (the inverse is true in Python 2)For examples of use see cli.py and test_gmail.py/test_message.pyChangelog:*   0.1     2012-10-17  Initial Release*   0.2     2012-10-18  Restructure module*   0.3     2012-12-28  Fix logging/worker*   0.3.1   2012-12-28  CLI attachment mime-type fix*   0.4     2013-08-24  Allow user to specify 'From' and 'Reply-To' header by passing 'sender'(Pull from from https://github.com/Kami - thanks)*   0.5     2014-02-12  Move _gmail_worker to module function to fixmultiprocessor problem on win32(Fix from gabriel.nevarez@gmail.com - thanks)*   0.6.1   2016-09-25  Python 3 support*   0.6.2   2016-12-12  Fix to Python 3 exception handling*   0.6.3   2017-08-07  Try to handle non-ascii filenamesFix for exception on `__del__` Method Invocation(thanks to https://github.com/theonewolf for fix/pull request)License:*   BSDAuthor:*   Paul Chakravarti (paul.chakravarti@gmail.com)
Package: gmailapi
PLEASE NOTE:This library is currently still under development. The API will likely undergo significant changes that may break any code you write with it.
The documentation will fall out of sync with the updates regularly until development slows down. Use it at your own risk.OverviewA library providing Python bindings for the Gmail api.InstallationTo install use pip:$ pip install gmailapiOr clone the repo:$ git clone https://github.com/matthewgdv/gmailapi.git
$ python setup.py installUsageUsage coming soon...ContributingContributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.You can contribute in many ways:Report BugsReport bugs athttps://github.com/matthewgdv/gmailapi/issuesIf you are reporting a bug, please include:Your operating system name and version.Any details about your local setup that might be helpful in troubleshooting.Detailed steps to reproduce the bug.Fix BugsLook through the GitHub issues for bugs. Anything tagged with "bug" and "help wanted" is open to whoever wants to implement a fix for it.Implement FeaturesLook through the GitHub issues for features. Anything tagged with "enhancement" and "help wanted" is open to whoever wants to implement it.Write DocumentationThe repository could always use more documentation, whether as part of the official docs, in docstrings, or even on the web in blog posts, articles, and such.Submit FeedbackThe best way to send feedback is to file an issue athttps://github.com/matthewgdv/office/issues.If you are proposing a new feature:Explain in detail how it would work.Keep the scope as narrow as possible, to make it easier to implement.Remember that this is a volunteer-driven project, and that contributions are welcome :)Get Started!Before you submit a pull request, check that it meets these guidelines:If the pull request adds functionality, it should include tests and the docs should be updated. Write docstrings for any functions that are part of the external API, and add
the feature to the README.md.If the pull request fixes a bug, tests should be added proving that the bug has been fixed. However, no update to the docs is necessary for bugfixes.The pull request should work for the newest version of Python (currently 3.7). Older versions may incidentally work, but are not officially supported.Inline type hints should be used, with an emphasis on ensuring that introspection and autocompletion tools such as Jedi are able to understand the code wherever possible.PEP8 guidelines should be followed where possible, but deviations from it where it makes sense and improves legibility are encouraged. The following PEP8 error codes can be
safely ignored: E121, E123, E126, E226, E24, E704, W503This repository intentionally disallows the PEP8 79-character limit. Therefore, any contributions adhering to this convention will be rejected. As a rule of thumb you should
endeavor to stay under 200 characters except where going over preserves alignment, or where the line is mostly non-algorythmic code, such as extremely long strings or function
calls.
Package: gmail-attachment-downloader
Gmail Attachment DownloaderA command line application that downloads all the gmail attachments with the specified format and search terms. It's still in alpha, so feel free to contribute :)InstallationSimply run:pip install gmail-attachment-downloaderUsageCheck the available options with:> gmail_attachment_dl --help
Usage: gmail_attachment_dl [OPTIONS]

Options:
  -e, --email TEXT       The email address used to login and retrieve
                         attachments

  -i, --inbox TEXT       Name of the inbox containing your email  [default:
                         Inbox]

  -s, --search TEXT      Equivalent to gmail's search box(attachments are
                         always filtered)  [default: ]

  -f, --folder TEXT      Folder where attachments will be saved
  -ext, --file_ext TEXT  Extension in which the downloaded attachments will be
                         saved

  -m, --mime_type TEXT   MIME Type to filter attachments(guessed from
                         extension by default)

  --help                 Show this message and exit.You are required to provide the following options:> gmail_attachment_dl -e example@gmail.com -f "C:\My Attachments" -ext pdfThis will search your default Inbox for every pdf file and save them at "C:\My Attachments", so you probably want to be more specific than that.Here's how you would download every pdf from unread e-mails on the Test inbox:gmail_attachment_dl -e example@gmail.com -f "C:\My Attachments" -ext pdf -s "is:unread" -i TestThe-soption allows you to use any filters you would use in gmail. You can check the available filters athttps://support.google.com/mail/answer/7190?hl=en.The-ioption allows you to specify an Inbox to search.
Package: gmailbackup
# Gmail BackupThis is a small command-line tool that backs up your Gmail.It downloads your email messages as [RFC822](http://www.w3.org/Protocols/rfc822/) format *.eml text files, which are compatible with most email clients.## InstallationThis requires Python 2.7.You can install dependencies using this command:pip install gmailbackup## Command Line UsageDownload all email messages into the "email" directory:./gmailbackup.py -u <username> -p <password>Download all email messages labeled "foo" and "bar" into their own subdirectories under "mydir":./gmailbackup.py -u <username> -p <password> -l foo,bar -o mydir## Python UsageTo get started, use the `GmailClient` class in a `with` statement, authenticate it, then iterate any mailbox (label) you'd like.The `GmailClient` is a simple wrapper around the IMAP4 client.from gmailbackup import GmailClientwith GmailClient() as client:client.authentiate('me@gmail.com', 'mypassword')client.save_mailbox('Some Label', 'path/to/downloads')
Package: gmail-draft-creator
Gmail Drafter: Create Mail Merge DraftsSimple tool to take a CSV and a template and create drafts in your Gmail. Useful for sending emails to large-ish numbers
of people where you want to slightly customize the emails for each user. You can quickly run through drafts, customize it, and send.Installationpipinstallgmail-draft-creatorUsageUsage:gmail-draft-creator[OPTIONS]Options:--csvPATHPathtotheCSVfile.[required]--templatePATHPathtothetemplatefile.[required]--subjectTEXTSubjectfortheemaildrafts.--dry-runRunscriptwithoutcreatingdrafts.--helpShowthismessageandexit.You can also import thecreate_draftfunction and use it in your own scripts.Template FilesYou can include subject line and variables in the template file:Subject: Hello $NAME

Hi, here's another ${REASON} why I'm emailing you.SetupGenerating a Gmail API TokenNavigate to the Google Cloud Console.https://console.developers.google.com/Create a new project or select an existing one.Go to "APIs & Services" -> "Library" and enable the Gmail API.Navigate to "APIs & Services" -> "Credentials".Click "Create Credentials" -> "OAuth client ID".Select "Desktop app" as the application type, then click "Create".Download the JSON file, rename it tocredentials.json, and place it in the root of your project.Run the script and oauth into your accountCredential Scopes Neededhttps://www.googleapis.com/auth/gmail.composehttps://www.googleapis.com/auth/gmail.readonlyhttps://www.googleapis.com/auth/calendar.readonlyhttps://www.googleapis.com/auth/calendar.eventSome of these are in place for possible future improvements.TODOadd credentials as a command line argumentadd serialized token as a CLI argument
Package: gmail-forwarding
GmailFwdhttps://github.com/FrenchCommando/special-telegram.gitHave your friends subscribe to some stream of emails and forward them automatically.Use caseYou have an Amazon Prime account that all your friends are using.
They won't stop bothering you about refund/return issues.
Now you can forward the problem to this amazing tool.TechnologyUsing Gmail API.
Everyone uses gmail - so I don't think it's quite a big restriction.ContributionYes tell me what you think.
I love pull requestshttps://github.com/FrenchCommandohttps://developers.google.com/gmail/api/quickstart/python
Package: gmailify
gmailifyThis tool validates if gmail addresses and corporate emails with google mail servers are valid without being authenticated. The default thread is 10 to avoid being rate limited.Installationpython -m pip install gmailifyCheck a single gmail addresspython -m gmailify -e example@gmail.comInput from filepython -m gmailify -f emails.txtPass through proxypython -m gmailify -p http://127.0.0.1:8080 -f emails.txtOutput to a filepython -m gmailify -f emails.txt -o output.txt
Package: gmailnator.py
Python wrapper to accessGmailnatorprogrammaticallyWhat isGmailnator?Gmailnator is a free service that allows getting instant temporary email
it is also known as “tempmail”, “10 minute mail”, “throw away mail”,
“disposable mail”, fake email, and “trash mail”. It is used to prevent
spam into your personal email address. Most of the sites require to
register in order to view content, post comments,or download files like
forums, blogs, public WI-FI spots, etc. you can use gmailnator to get
instant email without using your real email address.Gmailnator is the most advanced temporary email service on the web
because it offers you to use a Gmail email address in which other temp
mail providers are not supported.WarningNever use temporary mail for important information. It is a public email
and can be accessed by anyone and your mail address is only temporary.
Gmailnator email messages are auto-deleted after 24 hours and has a 7
Days Backup of all Emails.Exampleimportgmailnatorcsrf_token,email=gmailnator.generate_email()print(f'Email:{email}')print(f'Token:{csrf_token}')input('Send email, wait a few minutes to ensure that it has been received then press enter to continue...')emails=gmailnator.check_emails(csrf_token,email)print(f'Got{len(emails)}emails')formailinemails:print(f'Subject:{mail["subject"]}')print(f'Body:{mail["body"]}')print(f'Link:{mail["link"]}')print(f'Time:{mail["time"]}')print(f'Full body:{gmailnator.get_message(mail["link"],csrf_token)}')
Package: gmailnotipy
gmailnotipygmailnotipyWatches your all gmail accounts and notifies you when an email arrives.ConfigPlace your credentials in~/.config/gmailnotipy.jsonas per following json format.[
    {
        username: "gmail_account_1_username",
        password: "gmail_account_1_password"
    },
    {
        username: "gmail_account_2_username",
        password: "gmail_account_2_password"
    },
    {
        username: "gmail_account_2_username",
        password: "gmail_account_2_password"
    }
]
Package: gmailpm
gmailpm allows you to monitor the progress of extended applications using gmail.Tutorial:http://homepage.univie.ac.at/wolfgang.lechner/gmailpm.htmlDescription:1. Create a TGmailProjectMonitoring objectimport gmailpm.gmailpm as gpmpm = gpm.TGmailProjectMonitoring(emailAddress="youremailaddress@gmail.com", emailPassword="yourpassword",projectName="TestProject")Note, that the class TGmailProjectMonitoring requires 3 arguments, your emailaddress, your password and a discription of the job.2. At the beginning of your code send a Mail to your gmail account with senStaretedMessagepm.sendStartMessage()sendStartMessage without arguments sends a message with the projectname as subject and hostname and current directory as body. You canoverride the body text with the optional argument info (eg. pm.sendStartMessage(info="startedat CLUSTER:./mydir") )3. In order to protocoll your progress you can send a progress message withpm.sendProgressMessage("After %d Steps: Avg=123456.7890" % (i,))Example:if __name__=="__main__":project = "TestProject"pm = TGmailProjectMonitoring(emailAddress="test.test@gmail.com",emailPassword="password",projectName=project)pm.sendStartMessage(info="startedat CLUSTER:./mydir")pm.sendProgressMessage("Progress 50%")pm.sendProgressMessage("Finished")
Package: gmailpy
A simple API wrapper for sending emails with  GmailGetting StartedInstall via pip (recommended)pipinstallgmailpyInstall from sourcepipinstallgit+https://github.com/iDutchy/gmailpyGetting StartedFirst you need to create your client:importgmailpyclient=gmailpy.Client("john.doe@gmail.com","P@$$w0rd")Usageawait client.send(receiver, content, subject=None, bcc=None, attachment_bytes=None, attachment_name=None)Parameters:reveiver (string): The receivers email addresscontent (string): The content of the emailsubject (string): The email subject.Defaults to “No subject”bcc (list): A list of other email addresses you want to send the mail to as BCC.Defaults to Noneattachment_bytes (byte array): Attach anything  to the email. This has to be a byte array! When providing this, theattachment_bytesargument becomes required!Defaults to Noneattachment_name (string): Thefullname of the attachment. This has to contain the file extension too! e.g “dog.png”. This is required when providingattachment_bytes.Defaults to None
Package: gmail-scanner
Gmail ScannerGmail Scanner is a Gmail mailbox scanner.DescriptionGmail Scanner has a multi-process mode that is very fast, and how fast it is depends on the performance of your machine.The program will return only one results:Unregistered: It means that the Gmail is not registered or isblocked.Update1.0.9Fixed some bug1.0.8Fixed some bug1.0.7Fixed: out of range1.0.6Feat: support for special num1.0.5Fixed: logs dir1.0.4Feat: add logs dir1.0.3Feat: log to file1.0.2Fixed: print NoneFeat: print batch num and email num1.0.1Fixed some bug1.0.0Record results to a csv file.UsageYou need to installgmail_scannerbefore.pipinstallgmail_scannerLite ModeCreate a new.pyfile with the following codes.fromgmail_scanner.gmail_scannerimportcheck_one_gmail# Only Print Unregistered Result# admin is email prefixcheck_one_gmail(f"admin001")If you want to scan a lots of Gmail, you can use the following codes.fromgmail_scanner.gmail_scannerimportscan_int_single,scan_int_multi# single process mode(slow) to scan 6-digit gmail mailboxesstart_num=0end_num=999999email_length=6output_file=f'results.csv'scan_int_single(start_num,end_num,email_length,output_file)# multi process mode(fast) to scan 6-digit gmail mailboxesstart_num=0end_num=999999email_length=6output_file=f'results.csv'batch_num=1000process_num=20scan_int_multi(start_num,end_num,email_length,output_file,batch_num,process_num)PyPiDockergitclonehttps://github.com/Annihilater/gmail_scannercdgmail_scanner
cpconfig-example.ymlconfig.yml
touchresults.csv
mkdirlogs# edit the .env filedocker-composeup-dAuthorGmailScanner©coo, Released under theMITLicense.
Package: gmail-sms
This is gmail_sms package used for sending emails to single as well as multiple usersimport the send_message function from gmail_sms.gmailfrom gmail_sms.gmail import send_messagedefine the required parametersgmail_user = 'example@gmail.com'
gmail_app_password = 'gmail app password' ==> to create one [Link](https://myaccount.google.com/apppasswords) 
recipient = "recipientUser1@gmail.com , recipientUser2@gmail.com"
subject = "How Are You"
body = "Selam, How are you"call the send_message function# send_message(gmail_user,mmco jnui hujw oqrp,recipient,subject,body)
Package: gmailsorter
Gmailsorter - Similarity based email sorting for Google MailUpdategmailsorter.comweb service launched as private beta - request access now:MotivationIn 2020 there were306.4 billion e-mailssent and received daily. This number is estimated to increase by 4% yearly, resulting in over 376.4 billion e-mails by
2025 . While email as medium for internal communication in large enterprises is slowly replaced by instant messaging
solutions and business communication platforms, these solutions fail to address the primary challenge, namely the
communication between employees from different companies. So addressing thestress and productivity lostresulting from interruptions caused by the increase of daily emails is the motivation for the development of gmailsorter.FeaturesAs a first step gmailsorter creates a barrier between you and your email. Just like a personal guardian it blocks emails
from your inbox and filters them into categories, so you can read the emails you care about when you have time and no
longer have them interrupt your work. Second in contrast to other automated solutions, gmailsorter is designed to
seamlessly integrate into your existing workflow:Gmailsorter is a server-side application, so you can continue using your favorite email client. In addition, the
Gmailsorter user interface is minimalistic so you can configure it once and then forget about it.Gmailsorter adopts the email labels you suggest and filters your emails accordingly. It is based on the believe that
the structure how you sort your ideas, documents and emails is very personal and you know what works best for you.Gmailsorter learns from your reactions. When you disagree with a suggested email label and modify it, Gmailsorter
takes this feedback into account for the next suggestions.So you can think about gmailsorter like a virtual assistant. It learns how you want your emails to be sorted based on
their similarity to previous emails you assigned to the same label. All the communication with gmailsorter is handled
via your Google Mail account. Following there simple steps:Gmailsorter takes your new emails and moves them from your inbox to its inbox.Afterwards Gmailsorter scans the content of your email, calculates the similarity to all existing emails and then based
on the email labels you assigned to all your previous emails it predicts the email label for the new email.If you agree with this suggestion you do have to do anything. But if you disagree with the suggestion, you can simply
change the email label, on the one hand this overwrites the suggestion from Gmailsorter and on the other hand Gmailsorter
takes your modification into account when it retrains its model for making suggestions.To learn more about Gmailsorter please have a look at the documentation below.DocumentationPreparationSort your emailsConfigure your email accountConfigurationGmailsorter.com - web serviceDocker containerPython interfaceSupportDeveloperPython InterfaceFuture directionsLicensegmailsorteris released under the BSD licensehttps://github.com/jan-janssen/gmailsorter/blob/main/LICENSE.
Package: gmail-trainer
gmail_trainerPypi package to send an email to yourself whenever the training of your model has finished.You can install the package using:pip install gmail-trainerThe first step is to go to this website to enable the Gmail API:https://developers.google.com/gmail/api/quickstart/pythonOnce you have enabled the API, a credentials.json file gets downloaded. Put it in your working directory and execute this code:from gmail_trainer import SendMail
gmail = SendMail()
service = gmail.create_credentials()A chrome page opens up and asks you to allow the API to access sending mails. Once its done a token.pickle file containing the access codes is created in your working directory. You can even copy that file to other directories to enable gmail-trainer for other projects as well.Now that you have your pickle file ready and are about to start training a long deep neural network, you can add this code snippet at the end of your training. The message content could contain the performance of your algorithm. As long as its a String.message = gmail.CreateMessage(address='youremailaddress@gmail.com',
                              msgPlain='Your message containing your algorithm performance as a String. This will be the body of the email.')
result = gmail.send_msg(service, message)Now you will get an email once the training is done ! Which you can check on your phone. This is ideal if you want to take some time off your laptop screen.