{ "info": { "author": "Nick Schorr", "author_email": "naschorr@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Topic :: Utilities" ], "description": "mail-to-sms\n===========\n\nProgrammatically send out text messages via email.\n\n|PyPI version|\n\nInstallation\n~~~~~~~~~~~~\n\n``pip install mail_to_sms`` and import like any other Python module. Or,\n\n``git clone https://github.com/naschorr/mail-to-sms`` locally as needed.\nMake sure to install the requirements with\n``pip install -r requirements.txt``\n\nArguments\n~~~~~~~~~\n\n- **number** {*string\\|int*}: The destination phone number (ex.\n ``5551234567``).\n- **carrier** {*string*}: The destination phone number's carrier (ex.\n ``\"att\"``). Current carriers are include: ``alltel``, ``att``,\n ``boost mobile``, ``cricket wireless``, ``metropcs``, ``project fi``,\n ``sprint``, ``tmobile``, ``us cellular``, ``verizon wireless``,\n ``virgin mobile``.\n- **username** {*string*} [optional]: The username for accessing the\n SMTP server (ex. ``\"username\"``). If omitted, it'll try to use the\n username stored in the `.yagmail\n file `__.\n- **password** {*string*} [optional]: The password for accessing the\n SMTP server (ex. ``\"password\"``). If using Gmail and 2FA, you may\n want to use an app password. If omitted, it'll try to use `yagmail's\n password `__\n in the keyring, otherwise it'll prompt you for the password.\n- **contents** {`*yagmail\n contents* `__}\n [optional]: A yagmail friendly contents argument (ex.\n ``\"This is a message.\"``). If omitted, MailToSMS's ``send()`` method\n can be called manually.\n- keyworded args (for extra configuration):\n- **quiet** {*boolean*}: Choose to disable printed statements. Defaults\n to False. (ex. ``quiet=True``)\n- **region** {*string*}: The region of the destination phone number.\n Defaults to \"US\". (ex. ``region=\"US\"``). This should only be\n necessary when using a non international phone number that's not US\n based. See the phonenumbers repo\n `here `__.\n- **mms** {*boolean*}: Choose to send a MMS message instead of a SMS\n message, but will fallback to SMS if MMS isn't present. Defaults to\n False. (ex. ``mms=True``)\n- **subject** {*string*}: The subject of the email to send (ex.\n ``subject=\"This is a subject.\"``)\n- **yagmail** {*list*}: A list of arguments to send to the\n yagmail.SMTP() constructor. (ex.\n ``yagmail=[\"my.smtp.server.com\", \"12345\"]``). As of 4/30/17, the args\n and their defaults (after the username and password) are\n ``host='smtp.gmail.com'``, ``port='587'``, ``smtp_starttls=True``,\n ``smtp_set_debuglevel=0``, ``smtp_skip_login=False``,\n ``encoding=\"utf-8\"``. This is unnecessary if you're planning on using\n the basic Gmail interface, in which case you'll just need the\n username and password. This may make more sense if you look at\n yagmail's SMTP class\n `here `__.\n\nExamples\n~~~~~~~~\n\n::\n\n from mail_to_sms import MailToSMS\n\n::\n\n MailToSMS(5551234567, \"att\", \"username@gmail.com\", \"password\", \"this is a message\")\n\n::\n\n MailToSMS(\"5551234567\", \"att\", \"username\", \"password\", [\"hello\", \"world\"], subject=\"hey!\")\n\n::\n\n MailToSMS(5551234567, \"att\", \"username\", \"password\", \"hello world!\", yagmail=[\"smtp.gmail.com\", \"587\"])\n\n::\n\n MailToSMS(\"5551234567\", \"att\", \"username@gmail.com\", \"password\", [\"line one\"], yagmail=[\"smtp.gmail.com\"])\n\n::\n\n mail = MailToSMS(5551234567, \"att\", \"username\", \"password\")\n mail.send(\"this is a string!\")\n\nRequirements\n~~~~~~~~~~~~\n\n- `yagmail `__\n- `phonenumbers `__\n- `click `__ (for the CLI)\n\nNote\n~~~~\n\nI've only been able to test this on AT&T, so I can't guarantee that this\nworks for other carriers. Feedback is appreciated.\n\n.. |PyPI version| image:: https://badge.fury.io/py/mail_to_sms.svg\n :target: https://badge.fury.io/py/mail_to_sms\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/naschorr/mail-to-sms", "keywords": "sms,mms,messaging,mail,api", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "mail_to_sms", "package_url": "https://pypi.org/project/mail_to_sms/", "platform": "", "project_url": "https://pypi.org/project/mail_to_sms/", "project_urls": { "Homepage": "https://github.com/naschorr/mail-to-sms" }, "release_url": "https://pypi.org/project/mail_to_sms/0.3.1/", "requires_dist": [ "click (>=6.7)", "keyring (>=10.4)", "phonenumbers (>=8.4)", "yagmail (>=0.6)" ], "requires_python": "", "summary": "Programmatically send out text messages via email.", "version": "0.3.1" }, "last_serial": 3009407, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e0ef0c0cc0b8940b4d10b2094dafbc76", "sha256": "c8853a9d02f5a2fe362ddc572e6ffe6a9c9ac3a9cacda3bd997d86d67c3d41a6" }, "downloads": -1, "filename": "mail_to_sms-0.1.0.zip", "has_sig": false, "md5_digest": "e0ef0c0cc0b8940b4d10b2094dafbc76", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4391, "upload_time": "2017-05-09T02:21:23", "url": "https://files.pythonhosted.org/packages/a0/9c/0f9147f1cf18a5d72abd80929292b6215ee7c6b27e9ebdb8368c9a960f7c/mail_to_sms-0.1.0.zip" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "c86eb02c3a23c7066046cdbfe77f3a84", "sha256": "6bb784a96da8541e107b22287b2f7840639beb8bc2e1325324ee5a07bc7f092a" }, "downloads": -1, "filename": "mail_to_sms-0.2.0.zip", "has_sig": false, "md5_digest": "c86eb02c3a23c7066046cdbfe77f3a84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4777, "upload_time": "2017-05-10T04:13:54", "url": "https://files.pythonhosted.org/packages/dd/37/46851bae7319ab0d8db331d2fa2f1bbba44e9fa0f247a190596b54a7b7a7/mail_to_sms-0.2.0.zip" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "6d694d53d75857d36aba9efc33941684", "sha256": "45d8d4a9f51f831d9b40b2d0cee01ff71a5c7fabbd5e03701f7c16bd584006a3" }, "downloads": -1, "filename": "mail_to_sms-0.2.1.zip", "has_sig": false, "md5_digest": "6d694d53d75857d36aba9efc33941684", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7099, "upload_time": "2017-05-10T21:30:23", "url": "https://files.pythonhosted.org/packages/f6/01/56d6ad527cf3c8714a4735a876c1930c022a7323ef45d792dc50900a7ca7/mail_to_sms-0.2.1.zip" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "a9783c99ccb7bdb57e39400b343e2318", "sha256": "371648a83ff30e7cad55e5118426a28b428ff4e5d93c983244398e55d887e740" }, "downloads": -1, "filename": "mail_to_sms-0.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a9783c99ccb7bdb57e39400b343e2318", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9967, "upload_time": "2017-07-09T03:35:22", "url": "https://files.pythonhosted.org/packages/ae/91/961cf97ea6c2ebe2bf5dbcf28bc7413a6f7788479dc8c7a66c947482cda2/mail_to_sms-0.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bf219ac641d0c9ad1af4a7c7d181cf93", "sha256": "11fe97cccef90064cea666f7bcb95b252873011ccb9da1c6ac019410b98b02ea" }, "downloads": -1, "filename": "mail_to_sms-0.3.1.tar.gz", "has_sig": false, "md5_digest": "bf219ac641d0c9ad1af4a7c7d181cf93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7327, "upload_time": "2017-07-09T03:35:24", "url": "https://files.pythonhosted.org/packages/a6/42/ab07fd682b82bc585b32948101bd95da2eb600b26174a6e9d693e5e5baef/mail_to_sms-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a9783c99ccb7bdb57e39400b343e2318", "sha256": "371648a83ff30e7cad55e5118426a28b428ff4e5d93c983244398e55d887e740" }, "downloads": -1, "filename": "mail_to_sms-0.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a9783c99ccb7bdb57e39400b343e2318", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9967, "upload_time": "2017-07-09T03:35:22", "url": "https://files.pythonhosted.org/packages/ae/91/961cf97ea6c2ebe2bf5dbcf28bc7413a6f7788479dc8c7a66c947482cda2/mail_to_sms-0.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bf219ac641d0c9ad1af4a7c7d181cf93", "sha256": "11fe97cccef90064cea666f7bcb95b252873011ccb9da1c6ac019410b98b02ea" }, "downloads": -1, "filename": "mail_to_sms-0.3.1.tar.gz", "has_sig": false, "md5_digest": "bf219ac641d0c9ad1af4a7c7d181cf93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7327, "upload_time": "2017-07-09T03:35:24", "url": "https://files.pythonhosted.org/packages/a6/42/ab07fd682b82bc585b32948101bd95da2eb600b26174a6e9d693e5e5baef/mail_to_sms-0.3.1.tar.gz" } ] }