Pewarta Proxy

πŸ“‹ Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

βš™οΈ Pengaturan Proxy Target

Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

16 Commits

Folders and files

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": "hello@send.example.com",
        "to": "user@example.com",
        "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

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

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages