Skip to content

mailatlas/examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MailAtlas Examples

Runnable examples for the MailAtlas CLI, Python API, and application integrations.

Setup

Install MailAtlas from PyPI:

python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install mailatlas

Clone the sample data repository next to this repository:

git clone https://github.com/mailatlas/sample-data ../sample-data

If the sample data repository lives somewhere else, set:

export MAILATLAS_SAMPLE_DATA_DIR=/path/to/sample-data

Examples

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.

Local Package Override

To test examples against a local MailAtlas checkout, install the package from that checkout first:

python -m pip install -e /path/to/mailatlas

Then run the example normally.

The FastAPI demo also needs:

python -m pip install fastapi uvicorn python-dotenv

About

Runnable MailAtlas examples for CLI, Python API, providers, and application integrations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors