stapel-video
Video calls: rooms with shareable join codes, an access-level admission model (public / scope-trusted / restricted lobby) with a realtime waiting room over WebSockets, host admit/deny controls, join-token minting through a pluggable video-provider seam (LiveKit by default), and a recording-egress seam (start/stop + a video.egress_ended event) that integrates with stapel-recordings by event, never by import.
Part of the Stapel framework — composable Django apps that deploy as a monolith or as microservices without changing module code.
Install
pip install stapel-video
At a glance
| Fact | Value |
|---|---|
| Version | 0.4.1 |
| Python | >=3.11 (3.11, 3.12, 3.13, 3.14) |
| HTTP operations | 7 |
| Config axes | 3 |
| Usage surface | 11 |
| Extension points | 4 |
| Error codes | 47 |
| Fleet dependencies | stapel-auth (optional) · stapel-core · stapel-profiles (optional) · stapel-recordings (optional) |
Documentation
OpenAPI · capabilities.json · llms.txt (for agents)
What this is
- Rooms with human-shareable join codes (
abc-defg-hij). - Admission model —
public(anyone with the code joins),scope_trusted(members of the room's scope join instantly, others wait),restricted(everyone but the host waits in a lobby). - Realtime lobby over WebSockets (Channels) —
waiting/admitted/denied, authenticated by the same Stapel JWT stack HTTP uses. - Host controls — admit / deny waiting guests.
- Provider seam — one
VideoProviderABC (mint join token, create room, start/stop recording egress, verify webhook). Swap vendors without forking. - Recording is a seam, not a pipeline:
start/stop_egressproxy the provider and avideo.egress_endedcomm event carries the storage key to stapel-recordings — by event, never by import.
Alpha. See MODULE.md for the agent-facing map of seams.
Quick start
pip install stapel-video # core library
pip install 'stapel-video[livekit]' # + the default LiveKit backend
pip install 'stapel-video[channels]'# + the realtime lobby (WebSockets)
# urls.py
path("video/", include("stapel_video.urls"))
# asgi.py (realtime lobby)
from channels.routing import ProtocolTypeRouter, URLRouter
from stapel_core.django.jwt.channels import JWTAuthMiddlewareStack
from stapel_video.routing import websocket_urlpatterns
application = ProtocolTypeRouter({
"http": django_asgi_app,
"websocket": JWTAuthMiddlewareStack(URLRouter(websocket_urlpatterns)),
})
API
| Method | Path | What |
|---|---|---|
| POST | /video/api/rooms |
Create a room (creator auto-admitted host, with a token) |
| GET | /video/api/rooms/{join_code} |
Room info |
| POST | /video/api/rooms/{join_code}/join |
Join → admitted / waiting / denied |
| GET | /video/api/rooms/{join_code}/participants |
Participants (anchor-paginated) |
| POST | /video/api/rooms/{join_code}/lobby/admit |
Admit a waiting guest (host-only) |
| POST | /video/api/rooms/{join_code}/lobby/deny |
Deny a waiting guest (host-only) |
| POST | /video/api/webhook |
Provider webhook ingress (signed, unauthenticated) |
Configuration (STAPEL_VIDEO)
| Key | Default | What |
|---|---|---|
VIDEO_PROVIDER |
…livekit.LiveKitProvider |
Video backend (dotted path) |
SCOPE_PROVIDER |
…scope.DefaultScopeProvider |
scope_key resolution + membership |
DEFAULT_ACCESS_LEVEL |
restricted |
Access level for a room created without one |
DEFAULT_ADMIT_REQUIRED |
True |
Whether new rooms start with the lobby on |
LIVEKIT_URL / LIVEKIT_API_KEY / LIVEKIT_API_SECRET |
"" |
Default-provider credentials |
VIDEO_PROVIDER, DEFAULT_ACCESS_LEVEL and DEFAULT_ADMIT_REQUIRED are the
three CTO-facing config axes surfaced in docs/capabilities.json.
License
MIT — see LICENSE.
This page is assembled by stapel-readme from docs/readme.md plus the contract artifacts in docs/. Edit the prose in docs/readme.md; the badges, facts and links above and below it are generated — do not hand-edit README.md.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stapel_video-0.4.1.tar.gz.
File metadata
- Download URL: stapel_video-0.4.1.tar.gz
- Upload date:
- Size: 66.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b81830395f907b30adfb7d953da182d5dec333582237e60e6593bc6d62b89559
|
|
| MD5 |
408718df95b180a52ad39398859faef3
|
|
| BLAKE2b-256 |
76d8dc3fd6288c57c1affdece0863c03909f9f9ad91d4433e5359258535b2190
|
Provenance
The following attestation bundles were made for stapel_video-0.4.1.tar.gz:
Publisher:
publish.yml on usestapel/stapel-video
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stapel_video-0.4.1.tar.gz -
Subject digest:
b81830395f907b30adfb7d953da182d5dec333582237e60e6593bc6d62b89559 - Sigstore transparency entry: 2477726598
- Sigstore integration time:
-
Permalink:
usestapel/stapel-video@9af709837f04c54af362906329b6d76ee72fe64c -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/usestapel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9af709837f04c54af362906329b6d76ee72fe64c -
Trigger Event:
push
-
Statement type:
File details
Details for the file stapel_video-0.4.1-py3-none-any.whl.
File metadata
- Download URL: stapel_video-0.4.1-py3-none-any.whl
- Upload date:
- Size: 64.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6db8c1e08253d61bc751345ed52bec11130b676d98972296a8740420eca4fda
|
|
| MD5 |
f065d7ebce56cb7ff97304114609cb8b
|
|
| BLAKE2b-256 |
a4891db597afb699e77ad1db5fc0531fee149c9fa22dd9e6aa49cdda9c2cb933
|
Provenance
The following attestation bundles were made for stapel_video-0.4.1-py3-none-any.whl:
Publisher:
publish.yml on usestapel/stapel-video
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stapel_video-0.4.1-py3-none-any.whl -
Subject digest:
e6db8c1e08253d61bc751345ed52bec11130b676d98972296a8740420eca4fda - Sigstore transparency entry: 2477726611
- Sigstore integration time:
-
Permalink:
usestapel/stapel-video@9af709837f04c54af362906329b6d76ee72fe64c -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/usestapel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9af709837f04c54af362906329b6d76ee72fe64c -
Trigger Event:
push
-
Statement type: