Skip to main content

Wirexa API SDK - SignalWire/Twilio compatible voice API client

Project description

Wirexa API SDK

A production-ready Python SDK for Wirexa API - a self-hosted telephony platform compatible with SignalWire and Twilio REST API.

Installation

pip install wirexaapi

Quick Start

from wirexaapi import Client

# Connect to your Wirexa API instance
client = Client(
    project_id="your-project-id",
    api_token="your-api-token", 
    signalwire_space_url="your-space.example.com:5000"
)

# Make a call
call = client.calls.create(
    to="+573001234567",
    from_="+18005550100",
    url="https://your-backend.com/xml",
    method="POST",
    timeout=28,
    record=True,
    status_callback="https://your-backend.com/status",
    status_callback_event=["initiated", "ringing", "completed"],
)

print(f"Call SID: {call.sid}")
print(f"Call Status: {call.status}")

Migration from SignalWire

If you're migrating from SignalWire SDK:

# Before
from signalwire.rest import Client as SignalWireClient

# After
from wirexaapi import Client as SignalWireClient

The rest of your code stays the same!

Features

  • Full SignalWire/Twilio API compatibility
  • Call creation, retrieval, and listing
  • Machine Detection (AMD)
  • Recording
  • Status callbacks
  • Async AMD support

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wirexaapi-1.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wirexaapi-1.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file wirexaapi-1.0.1.tar.gz.

File metadata

  • Download URL: wirexaapi-1.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for wirexaapi-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4ed783590f51d94dc42516a68de00ed54b66be174783473382657711706f1260
MD5 91367be047650383e396d06a66d757ed
BLAKE2b-256 b29768b85979ab58a47288e703c4cdb1b21384f72d7c3289ab2afe9cd617c1fe

See more details on using hashes here.

File details

Details for the file wirexaapi-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: wirexaapi-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for wirexaapi-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8c36411406e120fe006b5096a4faf43b915c12ef2c7c7ff1757a10f7dc5ec3d
MD5 8d5646545d07efa309e738b24894d365
BLAKE2b-256 169cab9a43e638da9142dc12f22e36996eee63bbde1bf0c24ef5a96013e98607

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page