Skip to main content

Python wrapper for 10minutemail.com

Project description

10MinuteMail

PyPI - Python Version APM Build Status

Python wrapper for 10minutemail

Installation

pip install python-10minutemail

Usage

from minutemail import Mail
import time

# Create a new 10 minute mail
mail = Mail()
print(mail)

# Keep on checking for a new mail/message
while True:
    if mail.new_message():  # Check for new mail
        print(mail.fetch_message())  # Fetch all the messages
    time.sleep(2)

Sample message list

[
  {
    "read": false,
    "expanded": false,
    "forwarded": false,
    "repliedTo": false,
    "sentDate": "2021-05-10T07:32:41.000+0000",
    "sentDateFormatted": "May 10, 2021, 7:32:41 AM",
    "sender": "sauravnk30@gmail.com",
    "from": "[Ljavax.mail.internet.InternetAddress;@37e8c463",
    "subject": "Test message",
    "bodyPlainText": "Test description\r\n",
    "bodyHtmlContent": "<div dir=\"ltr\">Test description</div>\r\n",
    "bodyPreview": "Test description\r\n",
    "id": "2118940165622869807"
  }
]

Warning: If you use this tool/API

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-10minutemail-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

python_10minutemail-0.1.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file python-10minutemail-0.1.1.tar.gz.

File metadata

  • Download URL: python-10minutemail-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for python-10minutemail-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d965487bf993fe46ce1027b9b7d7d1dbc06749443ad0675c736ea4cf9cb1bf20
MD5 11d4dfb8df98f1df1dcba9f8db1ee78e
BLAKE2b-256 ce712dbc8cadce38d91bef4c05397013068569f05937f97d3ce919138fb20ec8

See more details on using hashes here.

File details

Details for the file python_10minutemail-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: python_10minutemail-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for python_10minutemail-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab29a9e3b38951128e474631a148e429e5e9f98d6f942eed94ede95d7d2aee5a
MD5 b9b2446a97225de0b9e6d46256c0af6e
BLAKE2b-256 d7af09135177f693a718cf3add96670fc0da428c876278f6a6fe93fc4bb8ad78

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page