Skip to main content

talocode-maillane

Gmail OAuth email API — send transactional emails from any hosting, no SMTP ports needed.

PyPI License: MIT

Why MailLane?

Free hosting providers (Railway, Render, Vercel) block SMTP ports 25, 465, 587. Your email libraries fail. Services like Resend require custom domain setup first.

MailLane solves this with Gmail OAuth. Connect your Gmail account with one click, get a REST API to send emails. No SMTP ports. No custom domain. Works from any hosting.

Install

pip install talocode-maillane

Quick Start

CLI

# Connect your Gmail account
maillane auth

# Send an email
maillane send --to user@example.com --subject "Hello" --text "Test email"

# Check stats
maillane stats

# List accounts
maillane accounts

Python SDK

from maillane import MailLaneClient

client = MailLaneClient(api_key="your-api-key")

# Send an email
client.send_email(
    to=["user@example.com"],
    subject="Hello from MailLane",
    text="This email was sent via MailLane!"
)

# Send HTML email
client.send_email(
    to=["user@example.com"],
    subject="Welcome!",
    html="<h1>Welcome!</h1><p>Your account is ready.</p>"
)

# List accounts
accounts = client.list_accounts()

# Get stats
stats = client.get_stats()

CLI Commands

Command Description
maillane auth Connect a Gmail account via OAuth
maillane accounts List connected Gmail accounts
maillane send Send an email
maillane stats Show account sending stats
maillane remove Remove a connected account

API

MailLane provides a REST API. All requests require a TALOCODE_API_KEY.

import os
from maillane import MailLaneClient

client = MailLaneClient(
    api_key=os.environ.get("TALOCODE_API_KEY"),
    base_url="https://api.talocode.site"
)

client.send_email(
    to=["user@example.com"],
    subject="Hello",
    text="Test email"
)

Pricing

MailLane uses credit-based pricing through Talocode Cloud.

Action Credits
Send text email 2
Send HTML email 3
Send with attachment 5
Connect account Free
List accounts Free
Get stats Free

1 credit = $0.01 USD. New projects get 100 free credits.

License

MIT © Talocode

Metadata

Release files for talocode-maillane 0.1.1

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

Source distribution (sdist)

Source distribution for talocode-maillane 0.1.1
File Size Uploaded
talocode_maillane-0.1.1.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for talocode-maillane 0.1.1
File Interpreter ABI Platform
talocode_maillane-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / talocode_maillane-0.1.1.tar.gz

Download URL talocode_maillane-0.1.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
74191e89fcba68c913816e7a2feef6364f44733830b62635aef4556a74440a53
BLAKE2b-256 checksum
How to use checksums
32341aebc56189b22657a1e076629bbcc5e862d5a13c46c7e458189cf1f8069a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / talocode_maillane-0.1.1-py3-none-any.whl

Download URL talocode_maillane-0.1.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53c81b5009b630a9b6a43d55dd0b8954864e34414f363b40734975574ad5d577
BLAKE2b-256 checksum
How to use checksums
09eec9ae4b77ab7466010c69b992770e6d5f80ca7468b6ab0abae9b78e25be5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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