MailTM Client
A lightweight, robust, and easy-to-use Python client for the MailTM API. This library is designed for automation tasks that require disposable email addresses and OTP verification.
Features
- Simple Interface: Minimalistic API for rapid integration into your scripts.
- Automated Setup: Handles domain fetching, account creation, and authentication in a single workflow.
- Generate random credentials (email & password).
- Create accounts automatically.
- Handle JWT token management.
- Inbox Management: Easily fetch the inbox list and read full message contents.
- Lightweight: Built on top of
requestswith zero heavy dependencies.
Installation
You can install it via pip (once published):
pip install mailtm-client
Or directly from GitHub:
pip install git+https://github.com/yourusername/mailtm-client.git
Quick Start
from mailtm_client import MailTMClient
# 1. Initialize client
client = MailTMClient()
# 2. Generate random credentials and create account
email, password = client.generate_random_credentials()
client.create_account(email, password)
# 3. Login to get the JWT token
token = client.login(email, password)
print(f"Successfully logged in with: {email}")
# 4. Check inbox for messages
messages = client.read_inbox()
for msg in messages:
print(f"New Message Subject: {msg['subject']}")
License
This project is licensed under the MIT License.
Release files for mailtm-client-wrapper 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mailtm_client_wrapper-0.1.0.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mailtm_client_wrapper-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / mailtm_client_wrapper-0.1.0.tar.gz
| Download URL | mailtm_client_wrapper-0.1.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba51244b72c0eb331f71d8180708daea91e135d8c4b49c2c61a6a2e52ee3f9b2
|
|
BLAKE2b-256 checksum How to use checksums |
d039135dc020c771e7a6be843dc2d997f599f7553644b7bf6ff2149d6fc02c03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / mailtm_client_wrapper-0.1.0-py3-none-any.whl
| Download URL | mailtm_client_wrapper-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2d854ca1b06af55ec7cb3aca9c651115f2c31453a76684321b16b175c9c119f
|
|
BLAKE2b-256 checksum How to use checksums |
ca268ee274613cdc946a24eaccae6879db2f9f6b385f03f6e1548218800b2da2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|