Skip to content
/ GmailBox Public

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

License

Notifications You must be signed in to change notification settings

H7AM0/GmailBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Pypi

Author

Hamo
Hamo • حـمــو
Instagram Telegram

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages