Skip to main content

TempMail CLI

A command-line tool for managing temporary email accounts using the mail.tm API.

Features

  • Create and manage multiple temporary email accounts
  • Monitor inbox for new messages
  • Read, delete, and mark messages as read
  • Interactive mode for easier email management
  • Persistent storage of accounts

Installation

pip install tempmail-cli

Or install from source:

git clone https://github.com/hasanfq6/tempmail-cli.git
cd tempmail-cli
pip install -e .

Usage

Basic Commands

# Create a new email account
tempmail create

# Create with custom alias
tempmail create --alias myemail

# List all accounts
tempmail list

# Switch to a specific account
tempmail use myemail

# Check inbox of current account
tempmail inbox

# Check inbox with full message content
tempmail inbox --full

# Read a specific message (can use partial ID)
tempmail read abc123

# Delete a specific message
tempmail delete-message abc123

# Monitor inbox for new messages
tempmail monitor

# Start interactive mode
tempmail interactive

# Show current account information
tempmail info

Interactive Mode

Interactive mode provides a shell-like interface for managing emails:

> help
Available commands:
  list, ls       - List recent messages
  read <id>      - Read a message by ID
  delete <id>    - Delete a message by ID
  mark <id>      - Mark a message as read
  refresh, r     - Refresh message list
  monitor, m     - Monitor inbox for new messages
  info, i        - Show account information
  exit, quit, q  - Exit interactive mode

Configuration

All account data is stored in ~/.tempmail/ directory:

  • accounts.json: Stores all account information
  • current_account.json: Stores the currently selected account

License

MIT

Metadata

Release files for tempmail-cli 2025.5.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tempmail-cli 2025.5.8
File Size Uploaded Provenance Actions
tempmail_cli-2025.5.8.tar.gz 7.2 kB Without provenance Details for tempmail_cli-2025.5.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tempmail-cli 2025.5.8
File Interpreter ABI Platform Actions
tempmail_cli-2025.5.8-py3-none-any.whl Python 3 none any Details for tempmail_cli-2025.5.8-py3-none-any.whl

Total release size: 14.8 kB

Release files / tempmail_cli-2025.5.8.tar.gz

Download URL tempmail_cli-2025.5.8.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a1d10e919cdf9cce0a93afadac07f6f27d17b1397e58631f2dce39a73f93046b
BLAKE2b-256 checksum
How to use checksums
a257fec8cb0a676608e3aea33fb8e164a13aa06d9635a0154595e00dd1899f1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release files / tempmail_cli-2025.5.8-py3-none-any.whl

Download URL tempmail_cli-2025.5.8-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
395f5404ce0e8e73e1148773fc73144f93e050ac03e362489830edd5ca3e2c7a
BLAKE2b-256 checksum
How to use checksums
689bd165d481267a94472dfacf8c4ab3af39ae3249145274a8260a5fd3725656
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Security for tempmail-cli 2025.5.8

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.

Release history Release notifications | RSS feed

This release

2025.5.8 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page