GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - reloop-labs/reloop-python

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
reloop_email
reloop_email
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

Reloop Python SDK

Official Python SDK for the Reloop email API. Package name on PyPI: reloop-email.

Version 2.0 is a breaking rewrite aligned with the Node.js SDK: typed params, named Result objects for HTTP errors, and ReloopValidationError for bad client input.

Install

pip install reloop-email

Requires Python 3.9+.

Quick start

from reloop_email import Reloop

with Reloop(api_key="rl_...") as reloop:
    result = reloop.mail.send({
        "from": "[email protected]",
        "to": "[email protected]",
        "subject": "Welcome",
        "html": "<p>Thanks for signing up.</p>",
    })

    if result.email_error:
        print(result.email_error.status, result.email_error.body.message)
    else:
        print(result.response["messageId"])

Error model

Kind Behavior
Invalid arguments Raises ReloopValidationError (no HTTP call)
API / network failure Returns a named Result (email_error, api_key_error, domain_error, …) — does not raise

Resources

Reloop
├── api_key      # create, list, get, update, delete, rotate, enable, disable
├── mail         # send
├── contacts     # CRUD + .properties / .groups / .channels
├── domain       # create, list, get, update, delete, verify
├── webhook      # CRUD, pause/enable/disable, trigger, deliveries, verify
└── inbox
    ├── mailboxes
    ├── messages
    └── threads

Webhook signature verification (local, no HTTP):

from reloop_email import verify_webhook, WEBHOOK_SIGNATURE_HEADER

# raw_body: the exact request bytes; signature_header: the Reloop-Signature header
event = verify_webhook({
    "payload": raw_body,
    "headers": {WEBHOOK_SIGNATURE_HEADER: signature_header},
    "secret": "whsec_...",
})

# event: {"id", "type", "created_at", "data"}
if event["type"] == "email.received":
    print(event["data"]["subject"])

API errors carry the fields the API returns: email_error.body.message, .why, .fix and .link.

Docs

  • API reference: reloop.sh/docs
  • Contributing / local development: CONTRIBUTING.md

Breaking changes from 1.x

  • HTTP failures no longer raise ReloopApiError from service methods; they return named *_error fields.
  • Dynamic Stripe-style Resource objects are gone; responses are typed dicts / dataclasses.
  • api_keys → api_key; contacts nesting matches Node (contacts.properties, etc.).
  • Removed: domain.get_nameservers, domain.forward_dns, api_keys.pause.
  • ReloopClient is no longer a public constructable export.

License

Apache License 2.0 with additional use restrictions from Reloop Labs. See LICENSE.

About

No description, website, or topics provided.

Resources

Readme
License

Contributing

Contributing
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.