https://github.com/st1vms/onesecmail-api
1secmail unofficial API, supporting random email generation, fetching messages and downloading attachments
https://github.com/st1vms/onesecmail-api
1secmail api attachment email mail unofficial-api
Last synced: about 1 year ago
JSON representation
1secmail unofficial API, supporting random email generation, fetching messages and downloading attachments
- Host: GitHub
- URL: https://github.com/st1vms/onesecmail-api
- Owner: st1vms
- License: mit
- Created: 2023-10-28T17:51:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-29T17:08:09.000Z (over 2 years ago)
- Last Synced: 2025-03-20T16:43:55.979Z (over 1 year ago)
- Topics: 1secmail, api, attachment, email, mail, unofficial-api
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 1secmail unofficial API
This is an unofficial wrapper for 1secmail API.
It provides:
- `MailBoxMessage`, `MailMessage`, and `MailAttachment` convience dataclasses.
- **Wrapper** methods for:
- Getting list of 1secmail active domains -> `get_domain_list`
- Generating random emails -> `gen_random_emails`
- Fetching mailbox for an email -> `fetch_mailbox`
- Fetching a message out of an email -> `fetch_msg`
- Downloading file attachments from email messages: `download_attachment`
# How to install
```
pip install onesecmail-api
```
# How to import
Import this library with:
```py
import onesecmail_api
```
or just some individual components with:
```py
from onesecmail_api import (
MailBoxMessage,
MailAttachment,
MailMessage,
get_domain_list,
gen_random_emails,
fetch_mailbox,
fetch_msg,
download_attachment,
)
```