Skip to main content

InboxTrue CLI

Command-line client for the InboxTrue email validation API. Requires Python 3.10 or newer.

Installation

Once published on PyPI, install the CLI with pipx:

pipx install inboxtrue

You can also install it with python -m pip install inboxtrue inside a virtual environment. Both inboxtrue and python -m inboxtrue run the CLI.

Authentication

Log in with a browser on the same machine:

inboxtrue login

Use inboxtrue login --no-browser to print the login URL without opening it. For Docker or SSH, approve the login in a browser on any device and paste the code it displays:

inboxtrue login --code

For scripts and CI, set INBOXTRUE_API_KEY to your API key. It takes precedence over the saved browser session.

inboxtrue logout forgets the local tokens. To revoke the session on the server, use Connected apps on the dashboard's /keys page.

Validate addresses

inboxtrue validate alice@example.com bob@example.com
inboxtrue validate --timeout 90 alice@example.com
inboxtrue validate - < emails.txt
inboxtrue credits

Input files contain one address per line; blank lines and lines starting with # are ignored. With no address arguments, validate reads standard input.

Output defaults to a table in a terminal and newline-delimited JSON when piped. Use --format json or --format table to select the format explicitly:

inboxtrue validate --format json alice@example.com
inboxtrue credits --format json

Validation costs one paid credit per checked address. Malformed addresses and checks that error out are free. Once paid credits run out, validations are free under a much lower rate limit. --timeout controls the mail-server wait per address, from 1 to 90 seconds; the default is 60 seconds.

Configuration

inboxtrue config get api_url
inboxtrue config set api_url https://api.inboxtrue.com
inboxtrue --version
inboxtrue --help

The default API URL is https://api.inboxtrue.com. config get shows the saved setting, which is empty until set. INBOXTRUE_API_URL overrides the saved setting.

Settings and credentials are stored under $XDG_CONFIG_HOME/inboxtrue, or ~/.config/inboxtrue when that variable is unset. Sessions are stored separately for each API URL. Files are restricted to the current user on POSIX; on Windows, credential privacy depends on the config directory's ACL.

Development

python -m venv .venv
. .venv/bin/activate
python -m pip install -e '.[dev]'
python -m pytest
python -m build
python -m twine check --strict dist/*

On Windows, activate with .venv\Scripts\Activate.ps1 in PowerShell instead. CI tests the installed package on Linux, macOS, and Windows, and checks the wheel built from the source distribution. Publishing is a separate manual step.

License

MIT.

Metadata

Release files for inboxtrue 0.1.0

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

Source distribution (sdist)

Source distribution for inboxtrue 0.1.0
File Size Uploaded
inboxtrue-0.1.0.tar.gz 13.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for inboxtrue 0.1.0
File Interpreter ABI Platform
inboxtrue-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.9 kB

Release files / inboxtrue-0.1.0.tar.gz

Download URL inboxtrue-0.1.0.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e61f114301579606402402bf4ace2af7494dcbbc89b591429f8eade6b3930ae8
BLAKE2b-256 checksum
How to use checksums
336e01e7c27e27f03198e186ee6f1ab0bb8fd843e43fe7f5733be85f5bb75c51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / inboxtrue-0.1.0-py3-none-any.whl

Download URL inboxtrue-0.1.0-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46924d4a126b8976d0e3b7da62cc433ed5a4ac92660640f63d4dd31f3c568586
BLAKE2b-256 checksum
How to use checksums
4436cd5ed6467ff5be2b68da835e40ed9ca028d167d0b2d4cf401d785ddd4999
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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