Unofficial python wrapper for minuteinbox.com
Project description
minuteinbox
Unofficial python wrapper for minuteinbox.com
usage
from minuteinbox import Inbox
# use without parameters to create a new inbox
# inbox = Inbox()
# use with address and token to reuse an existing inbox
inbox = Inbox(
address="maximo.kayo@moontrack.net",
token="86d6b9308a1a482ba348533a457146c4",
)
address = inbox.address
token = inbox.token
print(address, "(", token, ")")
print()
# extend the expiration of the inbox by 10 minutes
inbox.extend_10m()
print("Expires in:", inbox.expires_in, "seconds")
print()
# fetch all emails in the inbox
for mail in inbox.mails:
print("FROM:", mail.sender.name, mail.sender.address)
print("SUBJECT:", mail.subject)
print("SENT AT:", mail.sent_at)
print("IS NEW:", mail.is_new)
print("CONTENT")
print(mail.content)
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
minuteinbox-0.3.0.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file minuteinbox-0.3.0.tar.gz
.
File metadata
- Download URL: minuteinbox-0.3.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.8.15 Linux/5.15.0-1024-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab6f76923fd04aef33815d62f81b4bccd10f6058de2d2228358ced1dbb06da76 |
|
MD5 | 0874eaa0036c38d3374758bbe5174fa7 |
|
BLAKE2b-256 | dce4b56e8e46b5831ed1c038001e836dec2d7b11eef3ff875b4d5dd287ffb1e9 |
File details
Details for the file minuteinbox-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: minuteinbox-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.8.15 Linux/5.15.0-1024-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2f6189e341465c11c0949070fad5ab3bce7e14d8e091a79fdbf5529414b30a7 |
|
MD5 | ead38256bbdb84ed7c65ed318d5d79c3 |
|
BLAKE2b-256 | c747a3934e7d8bbe99d065155745f433a2b09606865478be20bb477a5f88e887 |