Dataclass holding Twilio credentials with env fallback.
# Source: https://github.com/PatterAI/Patter | License: MIT | Copyright 2026 Patter Contributors
# Provided via justclaw.it.com; keep this notice with the code.
"""Twilio carrier credentials for Patter."""
from __future__ import annotations
import os
from dataclasses import dataclass
__all__ = ["Carrier"]
@dataclass(frozen=True)
class Carrier:
"""Twilio carrier credentials.
Phase 2 dispatch narrows on :attr:`kind` to instantiate the underlying
:class:`getpatter.providers.twilio_adapter.TwilioAdapter` on demand.
Example::
from getpatter.carriers import twilio
carrier = twilio.Carrier() # reads env
carrier = twilio.Carrier(account_sid="AC...", auth_token="...")
"""
account_sid: str = ""
auth_token: str =
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key