Mailinator Public API
Python wrapper for mailinator's public api. This library scrapes mailinator's websockets api and gives an abstraction layer for basic operations such as viewing the inbox, email's content and removing them.
This means that this will allow you to to view and remove emails from public inboxes of https://www.mailinator.com without the need of a headless browser. Notice there is a limit for removing emails.
Usage
I hope it is simple enough.
from mailinatorapi import PublicInbox
inbox = PublicInbox("carlos")
print(inbox.web_url)
# Iterate over the emails and print some info
for email in inbox:
print(email.from_address)
print(email.from_name)
print(email.subject)
print(email.seconds_ago)
print(email.text)
print(email.html)
print([f"{link.text}: {link.url}" for link in email.links])
# remove the last email
email = inbox.get_lastest_email()
print(email.from_address)
ok, msg = email.remove()
if ok:
print("Removal successful! ", msg)
else:
print("Removal failed! ", msg)
You can access the raw json response for the email object with email.json.
Metadata
Release files for mailinator-public-api 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mailinator-public-api-0.1.1.tar.gz | 5.2 kB | Without provenance | Details for mailinator-public-api-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mailinator_public_api-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for mailinator_public_api-0.1.1-py3-none-any.whl |
Total release size: 12.9 kB
Release files / mailinator-public-api-0.1.1.tar.gz
| Download URL | mailinator-public-api-0.1.1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0a9dc64d9324c3f6896bdda4e54f98a4040f3d614f0950fc5c6da9dd030e60b
|
|
BLAKE2b-256 checksum How to use checksums |
8a95d19f0b900afb894f607d4effe093d450b2c7268c4f3ffb861724c5668fe2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Release files / mailinator_public_api-0.1.1-py3-none-any.whl
| Download URL | mailinator_public_api-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6460508007f48f5fd213b795d4e01e17a87ffeadccc7f08f0e773b25697e07c7
|
|
BLAKE2b-256 checksum How to use checksums |
35e9c41db4e7beaf953598870fba23181bd1a95870e153e05ea20f84ff0d20b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Security for mailinator-public-api 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.