Name | temporary-mail JSON |
Version |
1.6
JSON |
| download |
home_page | |
Summary | A Temp Mail library for python |
upload_time | 2023-01-08 11:35:53 |
maintainer | |
docs_url | None |
author | S M Shahriar Zarir |
requires_python | |
license | |
keywords |
python
mail
tempmail
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
A package that allows to create temp mail and receive emails from it.
<br>
<h3>Example:</h3>
from pytempmail import TempMail
from time import sleep
tm=TempMail()
# Print Current Mail
print(f'Email: {tm.email}')
printed_mails=[]
print('All Emails are:')
while True:
all_mails=tm.get_mails()
for mail in all_mails:
if mail.id not in printed_mails:
# Adding to the list, so it will not print it again
printed_mails.append(mail.id)
print(f'From: {mail.from_name} - {mail.from_addr}')
print(f'Subject: {mail.subject}')
print(f'Body: {mail.text}')
# you can use mail.description to print short text
# mail.html returns only html. use it if you're on web
print('\n- - - - - END - - - - -\n')
sleep(5)
Raw data
{
"_id": null,
"home_page": "",
"name": "temporary-mail",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "python,mail,tempmail",
"author": "S M Shahriar Zarir",
"author_email": "<shahriarzariradvance@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/26/88/0c0a3d7eb148b71ad7f82639d8dbd51b1c9ae396b96b82edfc766b1d40a8/temporary-mail-1.6.tar.gz",
"platform": null,
"description": "\r\nA package that allows to create temp mail and receive emails from it.\r\n<br>\r\n<h3>Example:</h3>\r\n\r\n from pytempmail import TempMail\r\n from time import sleep\r\n \r\n tm=TempMail()\r\n # Print Current Mail\r\n print(f'Email: {tm.email}')\r\n \r\n printed_mails=[]\r\n \r\n print('All Emails are:')\r\n while True:\r\n \tall_mails=tm.get_mails()\r\n \tfor mail in all_mails:\r\n \t\tif mail.id not in printed_mails:\r\n \t\t\t# Adding to the list, so it will not print it again\r\n \t\t\tprinted_mails.append(mail.id)\r\n \t\t\tprint(f'From: {mail.from_name} - {mail.from_addr}')\r\n \t\t\tprint(f'Subject: {mail.subject}')\r\n \t\t\tprint(f'Body: {mail.text}')\r\n \t\t\t# you can use mail.description to print short text\r\n \t\t\t# mail.html returns only html. use it if you're on web\r\n \t\t\tprint('\\n- - - - - END - - - - -\\n')\r\n \tsleep(5)\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "",
"summary": "A Temp Mail library for python",
"version": "1.6",
"split_keywords": [
"python",
"mail",
"tempmail"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "79051a1f3942b2425c204bb328aa9065c3f782a24e63e1bcc99c408384fe8cea",
"md5": "edb959b62470c4ae9fedb156df9d94f0",
"sha256": "8b471a51594b5e58ec052c92f95ce7cb9cf2738bbc341049cda95fd813bd9f4a"
},
"downloads": -1,
"filename": "temporary_mail-1.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "edb959b62470c4ae9fedb156df9d94f0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 2653,
"upload_time": "2023-01-08T11:35:51",
"upload_time_iso_8601": "2023-01-08T11:35:51.557863Z",
"url": "https://files.pythonhosted.org/packages/79/05/1a1f3942b2425c204bb328aa9065c3f782a24e63e1bcc99c408384fe8cea/temporary_mail-1.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "26880c0a3d7eb148b71ad7f82639d8dbd51b1c9ae396b96b82edfc766b1d40a8",
"md5": "f3d457b38ee963550b74087599c39b77",
"sha256": "daae51e3a8d79cba30b13557348fb323cbc161fc3df188feb54d2bbf05a04424"
},
"downloads": -1,
"filename": "temporary-mail-1.6.tar.gz",
"has_sig": false,
"md5_digest": "f3d457b38ee963550b74087599c39b77",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2482,
"upload_time": "2023-01-08T11:35:53",
"upload_time_iso_8601": "2023-01-08T11:35:53.292375Z",
"url": "https://files.pythonhosted.org/packages/26/88/0c0a3d7eb148b71ad7f82639d8dbd51b1c9ae396b96b82edfc766b1d40a8/temporary-mail-1.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-08 11:35:53",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "temporary-mail"
}