Skip to main content

appsocom (Python)

Python server SDK for Appsocom Live: mint join tokens, manage rooms and participants, moderate and verify webhooks. Python 3.9+, standard library only.

pip install appsocom
import os
from appsocom import SfuKit, SfuKitError, verify_webhook

kit = SfuKit("https://api.appsocom.dev", os.environ["APPSOCOM_API_KEY"])  # project API key from the console

tok = kit.create_token("class-1", "u_7", name="Ada", role="student", metadata={"seat": 3})
tok["token"], tok["expiresAt"]

kit.set_role("class-1", "u_9", "student")             # promote an observer
kit.mute("class-1", "*", ["mic"], lock=True)          # mute everyone, keep them muted
kit.set_room_metadata("class-1", {"topic": "Fractions"})
kit.set_track_permissions("class-1", "u_7", {"allowAll": False, "allow": [{"userId": "u_1"}]})
kit.remove_participant("class-1", "u_8", ban=True)

Errors raise SfuKitError with .status and .body.

Webhooks (Flask):

@app.post("/appsocom-webhooks")
def hook():
    event = verify_webhook(os.environ["APPSOCOM_WEBHOOK_SECRET"], request.get_data(), request.headers.get("X-SfuKit-Signature"))
    if event is None:
        return "", 401
    print(event["event"], event["roomId"])
    return "", 204

All methods: create_token, get_room, list_participants, update_room, set_room_metadata, lock_room, close_room, update_participant, set_permissions, set_role, set_participant_metadata, set_track_permissions, remove_participant, unban, mute, admit, post_chat, lower_hands, get_attendance, get_attendance_csv, clear_attendance, start_breakouts, end_breakouts, move_to_group, health, request(). Standalone: sign_token, verify_webhook, sign_webhook.

Self-hosting your own deployment instead? Point url at it and pass its admin key; the optional jwt_secret signs tokens locally without an HTTP call.

Docs: docs.appsocom.dev · License: MIT

Metadata

Release files for appsocom 0.6.3

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

Source distribution (sdist)

Source distribution for appsocom 0.6.3
File Size Uploaded Provenance Actions
appsocom-0.6.3.tar.gz 14.5 kB With provenance Details for appsocom-0.6.3.tar.gz

Built distribution (wheel)

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

Total release size: 26.0 kB

Release files / appsocom-0.6.3.tar.gz

Download URL appsocom-0.6.3.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e5690725590c55e836c18a573b6ce3611e62bd1d1a0a1328a1f558415c8773ff
BLAKE2b-256 checksum
How to use checksums
8c99edb8b2de3ba88778d85987758141c15c69f2fb1d3c09fa88a7c903ae929c
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 17, 2026.

Transparency log

Release files / appsocom-0.6.3-py3-none-any.whl

Download URL appsocom-0.6.3-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b42cf8b3d71bfbf59ecd9a5acc6fe1bcafabc057dfcb93fde22fd5a79ef09d8
BLAKE2b-256 checksum
How to use checksums
d69e4194c6b842a5eec5de93e9a0f6df167ebf0392ab0a1378faa6abd2acceee
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 17, 2026.

Transparency log

Security for appsocom 0.6.3

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.

Select from 2 files

Attestation for appsocom-0.6.3.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 17, 2026.

Transparency log

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.

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