dTelecom Cloud server SDK for Python
Use Python 3.11 or later to issue room grants, administer participants, verify incoming webhooks, and use dTelecom speech and AI services. Set DTELECOM_API_KEY, DTELECOM_API_SECRET, and DTELECOM_CLOUD_URL in your backend environment.
from dtelecom_server import CloudClient
async def issue(room: str, identity: str) -> dict:
async with CloudClient() as cloud:
grant = await cloud.create_token(room, identity, ttl="10m")
return grant.client_fields()
Pass the returned token, wsUrl and fallbackUrls to the room client. Use the backend-only session ID and expiry to schedule extensions. Keep a client open across requests in a long-running application and call await cloud.aclose() at shutdown.
For a Solana registry-backed webhook verifier, install the webhooks extra. The receiver accepts the original raw request body and Authorization header. Cloud API reference
Room administration and session charges
async with CloudClient() as cloud:
rooms = cloud.room_service()
for participant in await rooms.list_participants("demo"):
print(participant.identity)
await rooms.send_data("demo", b"Starting in one minute", topic="announcement")
charges = await cloud.list_sessions("demo", limit=20)
print(charges.total_usd)
The SDK uses room-scoped admin grants from Cloud and sends node operations to the returned API URLs. Rooms spanning multiple nodes return one participant per SID. The SDK prefers the local owner’s record over its relayed copies and sends participant changes to that owner. If the owner cannot be located after refreshing node membership, the operation reports an error. Each participant or AI service session has its own session ID. Use get_session to read its status and final charge.
Speech and AI services
from uuid import uuid4
async with CloudClient() as cloud:
result = await cloud.translate("Good morning", "es", source="en", idempotency_key=uuid4().hex)
if result.status == "completed":
print(result.result.translated_text)
else:
print(result.id)
Use get_translation to check a pending translation. The stt and tts clients issue and extend streaming credentials. Use transcriptions and wav for file jobs, vision for snapshots and moderation for audio, frames or a ticketed WebSocket. Supply one idempotency key per logical job or inference request and keep it across retries.
Verify a webhook
from dtelecom_server import WebhookReceiver
async with WebhookReceiver() as receiver:
event = await receiver.receive(raw_request_body, authorization_header)
print(event.event)
The receiver verifies the node's Ed25519 signature, registry membership and the exact request body's signed checksum. Pass the body bytes before JSON parsing. A custom async registered_node callback can supply your trusted registry lookup.
Metadata
Release files for dtelecom-server-sdk 0.1.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 |
|---|---|---|---|---|
| dtelecom_server_sdk-0.1.0.tar.gz | 52.5 kB | With provenance | Details for dtelecom_server_sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dtelecom_server_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dtelecom_server_sdk-0.1.0-py3-none-any.whl |
Total release size: 106.4 kB
Release files / dtelecom_server_sdk-0.1.0.tar.gz
| Download URL | dtelecom_server_sdk-0.1.0.tar.gz |
|---|---|
| Size | 52.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a06a40b9603576720e05280fdca8c83ef84173da94e64cb887ba9efab887ba89
|
|
BLAKE2b-256 checksum How to use checksums |
e0817b58654d16d3d78d616b94f0d2899745aab15e6720875614b4f21440aeba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / dtelecom_server_sdk-0.1.0-py3-none-any.whl
| Download URL | dtelecom_server_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 53.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea31e640e07c304d9bb9de530fbcf12c4e8ac5f11cb4dcb29fe8765d520beca1
|
|
BLAKE2b-256 checksum How to use checksums |
38705768f685d83a3b896aedbaf7e6247c709e40efa56e010d65e59305dfaff8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for dtelecom-server-sdk 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for dtelecom_server_sdk-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA 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.