Temp-Mail.org API wrapper.
Project description
freetempmail - Temp-Mail.org API wrapper.
How to Use?
Quickstart Guide
import asyncio
from freetempmail import FreeTempMail
if __name__ == '__main__':
ftm = FreeTempMail() # Instantiate class
asyncio.run(ftm.generate_mail()) # Generate a temporary mail
email = ftm.get_email() # Fetch email info
print(email)
messages = ftm.get_messages() # Fetch messages in mailbox
print(messages)
message_id = messages[0]['_id'] # Fetch a specific message by ID
message_content = ftm.get_message(message_id)
print(message_content)
Receive and Process a New Message
import asyncio
from freetempmail import FreeTempMail
if __name__ == '__main__':
ftm = FreeTempMail() # Instantiate class
asyncio.run(ftm.generate_mail()) # Generate a temporary mail
email = ftm.get_email() # Fetch email info
print(email)
new_message = ftm.wait_message() # Wait and fetch a new message
print(new_message)
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
freetempmail-1.0.4.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file freetempmail-1.0.4.tar.gz
.
File metadata
- Download URL: freetempmail-1.0.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9258a0d1be0ec31bc53f23ec60bec7c9f2a342de8678b2f0ce7bc97051b0fe2 |
|
MD5 | c38e2c6139accb4dfbf3feaaf720ecf6 |
|
BLAKE2b-256 | 42d7259f3b738b31d0aaf31f7a6243a1dbe9b483d204de1eaaa85cbcd8dfda3e |
File details
Details for the file freetempmail-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: freetempmail-1.0.4-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80daaecaa9588d2a5a42ddd5dde6e5eac4aff966ff8feb1520c5576d6078ac6d |
|
MD5 | fb97f019218ffef0c9a8e62cff25d088 |
|
BLAKE2b-256 | 79ea3d7a81b36f3fd4a05b40e0c0c9532ab859c58d1b066d8677667fe75443e5 |