Trueform Python SDK
The official Python client for the Trueform email validation API.
Python SDK documentation | API reference
Install
pip install trueform-cloud
Requires Python 3.10 or newer. The SDK has no runtime dependencies and requires no API key.
Quickstart
from trueform_cloud import Trueform
trueform = Trueform()
validation = trueform.validations.create(email="user@example.com")
if validation.is_deliverable:
print("Email looks good")
Handle validation results
Validation results are frozen, slotted dataclasses with complete type annotations:
if validation.did_you_mean:
print(f"Did you mean {validation.did_you_mean}?")
if validation.is_disposable:
print("Ask for a permanent email address")
Available attributes:
emailis_valid_formatis_freemailis_disposablehas_mx_recordsdid_you_meanis_deliverable
is_deliverable is a domain-level verdict. It does not prove that a specific mailbox exists.
Configure the client
Timeout values and retry delays use seconds:
trueform = Trueform(timeout=5, max_retries=2)
Override options for one request:
validation = trueform.validations.create(
email="user@example.com",
timeout=2,
max_retries=0,
)
The client retries connection failures, timeouts, rate limits, and server errors. A Retry-After
response header controls the delay when present. Use base_url= to point the client at a different
Trueform-compatible endpoint.
Errors
from trueform_cloud import InvalidRequestError, RateLimitError, Trueform
trueform = Trueform()
try:
validation = trueform.validations.create(email="user@example.com")
except RateLimitError as error:
print(f"Retry after {error.retry_after} seconds")
except InvalidRequestError as error:
print(error)
Exported exceptions:
TrueformErrorAPIErrorInvalidRequestErrorRateLimitErrorConnectionErrorTimeoutError
Exceptions expose code, status, request_id, and retry_after when available.
Development
python -m venv .venv
source .venv/bin/activate
python -m pip install -e ".[dev]"
python -m ruff check .
python -m mypy
python -m pytest
python -m build
python -m twine check dist/*
python scripts/check_package.py dist/*
Read CONTRIBUTING.md before opening a pull request. Report vulnerabilities through the process in SECURITY.md.
License
MIT. See LICENSE.
Metadata
Release files for trueform-cloud 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 | Provenance | |
|---|---|---|---|---|
| trueform_cloud-0.1.0.tar.gz | 6.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trueform_cloud-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.5 kB
Release files / trueform_cloud-0.1.0.tar.gz
| Download URL | trueform_cloud-0.1.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1fb27770e1fc1ad68667a755659b1d2c0c54e88d4d106e107c8285f54ca0246
|
|
BLAKE2b-256 checksum How to use checksums |
c518c079983f9b7b5e4ae43a9e7530e5e18ce22db86b5c91f46d502245168b2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.
Transparency logRelease files / trueform_cloud-0.1.0-py3-none-any.whl
| Download URL | trueform_cloud-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1daa0738636820f7ad5e05220e99c36ac674c14ba8df7724c8b3ae0b5f03de9f
|
|
BLAKE2b-256 checksum How to use checksums |
9109a9edd6c5f9925f7e2624850194f6a0d7f1c0852035b0a17d30840f6969c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.
Transparency logSecurity for trueform-cloud 0.1.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for trueform_cloud-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.
Transparency logA 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.