{ "info": { "author": "Jeremy Ephron", "author_email": "jeremyephron@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6" ], "description": "# simple-gmail\n\nA simple Gmail API client in Python for applications.\n\nCurrent Supported Behavior:\n* Sending html messages\n* Sending messages with attachments\n* Sending messages with your Gmail account signature\n* Retrieving messages with the full suite of Gmail's search capabilities\n\n## Getting Started\nThe only setup required is to download a \"client secrets\" file from Google that will allow your applications to do its thing.\n\nFollow the instructions here: https://developers.google.com/gmail/api/quickstart/python.\n\nName the file you download \"client_secrets.json\" and place it in the root directory of your application.\n\nThe first time you create a new instance of the `Gmail` class, a browser window will open and you'll be asked to give permissions to the application. This will only happen once.\n\nYou are now good to go!\n\n## Usage\n### Send a simple message:\n```python\nfrom simplegmail import Gmail\n\ngmail = Gmail() # will open a browser window to ask you to log in and authenticate\n\nparams = {\n \"to\": \"you@youremail.com\",\n \"sender\": \"me@myemail.com\",\n \"subject\": \"My first email\",\n \"msg_html\": \"