Skip to main content

Lumi Python SDK (lumi)

SDK oficial em Python para a infraestrutura de e-mails transacionais Lumi, com interface drop-in replacement compatível com o Resend.


📦 Instalação

pip install lumi
# ou com Poetry
poetry add lumi

🚀 Como Usar

1. Envio Estático (Estilo Resend)

import lumi

# Configurar API Key
lumi.api_key = "lu_live_123456789"

params: lumi.Emails.SendParams = {
    "from": "onboarding@suaempresa.ao",
    "to": ["cliente@gmail.com"],
    "subject": "Boas-vindas!",
    "html": "<h1>Olá!</h1><p>Seu e-mail transacional foi entregue.</p>",
}

email = lumi.Emails.send(params)
print("E-mail ID:", email["id"])

2. Envio Orientado a Objetos / Instância

from lumi import Lumi

client = Lumi("lu_live_123456789")

response = client.emails.send({
    "from": "suporte@suaempresa.ao",
    "to": "usuario@empresa.com",
    "subject": "Notificação",
    "text": "Seu chamado foi atualizado.",
})

3. Envio em Lote (Batch)

import lumi

lumi.api_key = "lu_live_123456789"

batch_response = lumi.Batch.send([
    {
        "from": "novidades@suaempresa.ao",
        "to": "cliente1@gmail.com",
        "subject": "Atualização Mensal",
        "html": "<p>Novidades do mês</p>",
    },
    {
        "from": "novidades@suaempresa.ao",
        "to": "cliente2@gmail.com",
        "subject": "Atualização Mensal",
        "html": "<p>Novidades do mês</p>",
    }
])

4. Gestão de Domínios & API Keys

import lumi

# Criar domínio
domain = lumi.Domains.create({"name": "meudominio.ao"})

# Verificar registros DNS
verified = lumi.Domains.verify(domain["id"])

# Listar API Keys
keys = lumi.ApiKeys.list()

5. Validação de Webhooks HMAC

from lumi import Webhooks

is_valid = Webhooks.verify_signature(
    payload=raw_body,
    signature=headers.get("lumi-signature"),
    secret="seu_webhook_secret"
)

📄 Licença

MIT © Lumi

Metadata

Release files for lumi-mail 1.0.2

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

Source distribution (sdist)

Source distribution for lumi-mail 1.0.2
File Size Uploaded Provenance
lumi_mail-1.0.2.tar.gz 8.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for lumi-mail 1.0.2
File Interpreter ABI Platform
lumi_mail-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.5 kB

Release files / lumi_mail-1.0.2.tar.gz

Download URL lumi_mail-1.0.2.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ed6fe7a9060f9aacca638124285f3d5b6b3772b88392663abf0bee75523c64a0
BLAKE2b-256 checksum
How to use checksums
827aebb56dfdb1628b335de970b46aa43792256e1060bef66b047c15b22b9daf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 22, 2026.

Transparency log

Release files / lumi_mail-1.0.2-py3-none-any.whl

Download URL lumi_mail-1.0.2-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92f0dd3bc76cdbd41e0ae2f11425fa84daeceff0070c44800dec2599465bbff9
BLAKE2b-256 checksum
How to use checksums
870b660d614eb1bff1b11ec4ccdfacb5d51d610578fdfc54edde85aa99775809
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 22, 2026.

Transparency log

Security for lumi-mail 1.0.2

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.

Select from 2 files

Attestation for lumi_mail-1.0.2.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 Oct 22, 2026.

Transparency log

A 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files Full provenance

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