A robust Python client for the MailTM API
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mailtm_client_wrapper-0.1.0.tar.gz.
File metadata
- Download URL: mailtm_client_wrapper-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba51244b72c0eb331f71d8180708daea91e135d8c4b49c2c61a6a2e52ee3f9b2
|
|
| MD5 |
c50ad6b63f89dcf23270da1437b526d8
|
|
| BLAKE2b-256 |
d039135dc020c771e7a6be843dc2d997f599f7553644b7bf6ff2149d6fc02c03
|
File details
Details for the file mailtm_client_wrapper-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mailtm_client_wrapper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2d854ca1b06af55ec7cb3aca9c651115f2c31453a76684321b16b175c9c119f
|
|
| MD5 |
d1d850f77253d969b9be50f0b4f3053c
|
|
| BLAKE2b-256 |
ca268ee274613cdc946a24eaccae6879db2f9f6b385f03f6e1548218800b2da2
|