Runnable examples for the MailAtlas CLI, Python API, and application integrations.
- Core package: https://github.com/mailatlas/mailatlas
- Documentation: https://mailatlas.dev/docs
- Sample data: https://github.com/mailatlas/sample-data
Install MailAtlas from PyPI:
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install mailatlasClone the sample data repository next to this repository:
git clone https://github.com/mailatlas/sample-data ../sample-dataIf the sample data repository lives somewhere else, set:
export MAILATLAS_SAMPLE_DATA_DIR=/path/to/sample-data| Directory | Purpose |
|---|---|
cli-ingest/ |
Ingest a synthetic .eml fixture and export JSON, HTML, and PDF artifacts. |
gmail-oauth-send/ |
Authorize Gmail API sending with OAuth and send a retry-safe test email. |
python-api/ |
Parse a synthetic .eml fixture through the Python API. |
fastapi-demo/ |
Minimal FastAPI wrapper around the MailAtlas parsing and storage API. |
To test examples against a local MailAtlas checkout, install the package from that checkout first:
python -m pip install -e /path/to/mailatlasThen run the example normally.
The FastAPI demo also needs:
python -m pip install fastapi uvicorn python-dotenv