Skip to main content

Telerixa SDK

Cliente Python para la API de voz de Telerixa, compatible con SignalWire y Twilio.

Instalación

pip install telerixa

Credenciales

Las obtienes desde el dashboard en telerixa.com:

  • project_id
  • api_token
  • space_url (por defecto telerixa.com)

Uso

from telerixa import Client

client = Client(project_id, api_token)

call = client.calls.create(
    to="+15551234567",
    from_="+15557654321",
    url="https://mi-backend.com/laml",
)

print(call.sid, call.status)

Migrar desde SignalWire

El parámetro signalwire_space_url se sigue aceptando, así que basta con cambiar el import:

# Antes
from signalwire.rest import Client
client = Client(project_id, api_token, signalwire_space_url="mi-space.signalwire.com")

# Después
from telerixa import Client
client = Client(project_id, api_token, signalwire_space_url="telerixa.com")

El resto del código no cambia.

Grabación y detección de contestador

call = client.calls.create(
    to="+15551234567",
    from_="+15557654321",
    url="https://mi-backend.com/laml",
    record=True,
    recording_status_callback="https://mi-backend.com/grabacion",
    machine_detection="Enable",
    status_callback="https://mi-backend.com/estado",
    status_callback_event=["initiated", "ringing", "answered", "completed"],
)

call.answered_by devuelve human, machine_start o unknown.

Consultar y modificar llamadas

# Listar
for c in client.calls.list(status="completed", limit=20):
    print(c.sid, c.duration)

# Consultar una
call = client.calls("CALL_SID").fetch()

# Colgar
client.calls("CALL_SID").update(status="completed")

Espacio propio

Si tu cuenta usa un subdominio:

client = Client(project_id, api_token, space_url="mi-space.telerixa.com")

Licencia

MIT

Metadata

Release files for telerixa 1.0.0

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

Source distribution (sdist)

Source distribution for telerixa 1.0.0
File Size Uploaded Provenance Actions
telerixa-1.0.0.tar.gz 4.2 kB Without provenance Details for telerixa-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for telerixa 1.0.0
File Interpreter ABI Platform Actions
telerixa-1.0.0-py3-none-any.whl Python 3 none any Details for telerixa-1.0.0-py3-none-any.whl

Total release size: 8.8 kB

Release files / telerixa-1.0.0.tar.gz

Download URL telerixa-1.0.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
494013e7b91ffe4943505c54e4fc2534a47f7ffd7d0a365d5c393b1f7c668500
BLAKE2b-256 checksum
How to use checksums
abc27bb22bdedd7733614a714c144c7a0bd76090dd59244d203911265da37ec4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release files / telerixa-1.0.0-py3-none-any.whl

Download URL telerixa-1.0.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ecb3550be42068bc87545fb087baf39e33b991827f85017c708d41dc3f88ddf
BLAKE2b-256 checksum
How to use checksums
1423dfe39ebf02c53a69993daf1b4e4109f89327e3d1fd2ae03dd2348ddc88d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Security for telerixa 1.0.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.0 This release

2 release files No 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