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
print(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
    print(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 Instagram Telegram 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-1.0.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

GmailBox-1.0.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file gmailbox-1.0.0.tar.gz.

File metadata

  • Download URL: gmailbox-1.0.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for gmailbox-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c1b9ee5084b550c4c149f315d91dfc3ce0f6ad56505d4057a4e7433ef4fe9695
MD5 4bbc6ccb15793a11133faa75f309e6bd
BLAKE2b-256 1b40de64b54db106302ca74bbd0e3fac6887336e32d9e5e12a5fec0be2570bae

See more details on using hashes here.

File details

Details for the file GmailBox-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: GmailBox-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for GmailBox-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9494fc6a5a27ff6307511c2fb4d7460eb862b0bb08fc9cf0b27758a4fe601656
MD5 ced71e28581116a345bef18ab4074861
BLAKE2b-256 3947c341b14eb7d998cab8e56414b9021ab8cbc199c4505d8adf95d2db46bb4c

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