Dark API SDK
Python SDK for Dark API — a self-hosted CPaaS voice platform fully compatible with SignalWire and Twilio REST API.
Installation
pip install darkapi
Quick Start
from darkapi import Client
client = Client(
project_id="your-project-id",
api_token="your-api-token",
signalwire_space_url="apivoice.co"
)
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"Status: {call.status}")
Migration from SignalWire
Only change the import — everything else stays the same:
# Before
from signalwire.rest import Client
# After
from darkapi import Client
Migration from Twilio
# Before
from twilio.rest import Client
# After
from darkapi import Client
Features
- Full SignalWire / Twilio REST API compatibility
- Outbound call creation
- Call status, fetch and update
- Answering Machine Detection (AMD) — sync and async
- Call recording with callbacks
- Status callbacks (initiated, ringing, answered, completed)
- LAML/XML verb support (Say, Play, Gather, Record, Hangup, Redirect…)
Documentation
Full API reference: https://apivoice.co/documentation
License
MIT
Metadata
Release files for darkapi2 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| darkapi2-1.0.0.tar.gz | 4.0 kB | Without provenance | Details for darkapi2-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| darkapi2-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for darkapi2-1.0.0-py3-none-any.whl |
Total release size: 8.3 kB
Release files / darkapi2-1.0.0.tar.gz
| Download URL | darkapi2-1.0.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34c48c67004d8ab63b4841361c41e5bb17e3b89deffd4515702c7e98dfe96f2c
|
|
BLAKE2b-256 checksum How to use checksums |
d082b39542ef8b0c04a0440f9b26004b947656e9fd33b477e2873b5a2ae3003c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / darkapi2-1.0.0-py3-none-any.whl
| Download URL | darkapi2-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8f9299b98bc699f5db35741b1cc0fe1bcd11efc370eb788031ad539e6acc434
|
|
BLAKE2b-256 checksum How to use checksums |
cd20b2011c06ccf59f9e2bddcc208bacc43bdc1d99f713f1ba28e3c7b1eeda65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for darkapi2 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.