Skip to main content

With this library, you can create random Gmail and receive messages

Project description

GmailBox

With this library, you can create random Gmail and receive messages

Install :

pip install -U GmailBox

How to use?

  • Here an example to use it:
from GmailBox import GmailBox

Gmail = GmailBox()

# Create a new gmail
New_Gmail = Gmail.new_email()
email = New_Gmail.email

# Start checking the inbox
inbox = Gmail.inbox(email)

# If there are messages in the inbox, print them
if inbox:
    for message in inbox:
        print("=" * 21)
        print(message)
    print("=" * 21)
# If no messages were received, print a message
else:
    print(f' [!] No messages were received.')
  • Here an async example:
from GmailBox.asyncio import GmailBox
import asyncio

# Define the main function
async def main():
    Gmail = GmailBox()

    # Create a new gmail
    New_Gmail = await Gmail.new_email()
    email = New_Gmail.email

    # Start checking the inbox
    inbox = await Gmail.inbox(email)

    # If there are messages in the inbox, print them
    if inbox:
        for message in inbox:
            print("=" * 21)
            print(message)
        print("=" * 21)
    # If no messages were received, print a message
    else:
        print(f' [!] No messages were received.')

# Run the main function
asyncio.run(main())

On GitHub

Author

Hamo
Hamo • حـمــو
Instagram Telegram

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

gmailbox-0.0.9.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

GmailBox-0.0.9-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

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