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.5.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 |
|---|---|---|---|---|
| appsocom-0.5.0.tar.gz | 12.4 kB | With provenance | Details for appsocom-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| appsocom-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for appsocom-0.5.0-py3-none-any.whl |
Total release size: 22.7 kB
Release files / appsocom-0.5.0.tar.gz
| Download URL | appsocom-0.5.0.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35e4ba3b932da41f00713258c2c25bcef0b8cd04067646e02fc9d854358f32fc
|
|
BLAKE2b-256 checksum How to use checksums |
739b3a6f83358fdea6ffd4ce802398c411eb111147c04eb69ddf950a810ac74a
|
| 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 14, 2026.
Transparency logRelease files / appsocom-0.5.0-py3-none-any.whl
| Download URL | appsocom-0.5.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c037a43ba23a71675ad2cc633a6d0d477219c364fe24ae56cf7fae3236406bf3
|
|
BLAKE2b-256 checksum How to use checksums |
4606fa83313df25f5bc27cc79c8d7b78cf5abc3e72dde354eb554cb133631a08
|
| 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 14, 2026.
Transparency logSecurity for appsocom 0.5.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 appsocom-0.5.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 14, 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.