A simple, ready-to-use client for testing the SmallWebRTCTransport.
Project description
SmallWebRTC Prebuilt
A simple, ready-to-use client for testing the SmallWebRTCTransport.
This prebuilt client provides basic WebRTC functionality and serves as a lightweight tool to quickly verify transport behavior without needing a custom implementation.
Ideal for development, debugging, and quick prototyping.
📦 Installation & Usage
If you just want to use the prebuilt WebRTC client in your own Python project:
✅ Install from PyPI
pip install pipecat-ai-small-webrtc-prebuilt
🧰 Example Usage
from fastapi import FastAPI
from fastapi.responses import RedirectResponse
from pipecat_ai_small_webrtc_prebuilt.frontend import SmallWebRTCPrebuiltUI
app = FastAPI()
# Mount the frontend at /prebuilt
app.mount("/prebuilt", SmallWebRTCPrebuiltUI)
@app.get("/", include_in_schema=False)
async def root_redirect():
return RedirectResponse(url="/prebuilt/")
🧪 Try a Sample App
Want to see it in action? Check out our sample app demonstrating how to use this module:
⌨ Development Quick Start
If you want to work on the prebuilt client itself or use it locally in development:
📋 Prerequisites
🔧 Set Up the Environment
- Clone the Repository
git clone https://github.com/your-org/small-webrtc-prebuilt.git
cd small-webrtc-prebuilt
- Build the Client
The Python package serves a built React client, so you need to build it first:
cd client
npm install
npm run build
cd ..
This creates the client/dist/ directory that the Python package will serve.
- Try the Sample App
Now you can test the local package with the sample app:
cd test
uv sync # Installs dependencies and the local package in editable mode
uv run bot.py
Then open http://localhost:7860 in your browser.
🚀 Publishing
Publishing is automated via GitHub Actions using trusted publishing (no API tokens needed).
Prerequisites
-
Update the version in
pyproject.toml:version = "2.0.3"
-
Create a git tag:
git tag -m v2.0.3 v2.0.3 git push --tags origin
Publishing Process
- Go to GitHub Actions in your repository
- Select the "publish" workflow
- Click "Run workflow"
- Enter the git tag (e.g.,
v2.0.2) - Click "Run workflow"
The workflow will:
- Build the client (React/Vite)
- Bundle it into the Python package
- Build the Python package with version from
pyproject.toml - Publish to both Test PyPI and PyPI
Testing Before Production
To test publishing without creating a release:
-
Use the
publish-testworkflow (publishes to Test PyPI only):- Go to GitHub Actions → "publish-test" workflow
- Click "Run workflow"
- No git tag needed!
-
Install from Test PyPI:
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pipecat-ai-small-webrtc-prebuilt
-
Test your changes, then use the regular
publishworkflow for production
Local Build Testing
To test the build locally before publishing:
# Build the client
cd client
npm install
npm run build
cd ..
# Copy client to package
mkdir -p pipecat_ai_small_webrtc_prebuilt/client
cp -r client/dist pipecat_ai_small_webrtc_prebuilt/client/
# Build the package
uv build
# Clean up
rm -rf pipecat_ai_small_webrtc_prebuilt/client
Project details
Release history Release notifications | RSS feed
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 pipecat_ai_small_webrtc_prebuilt-2.5.0.tar.gz.
File metadata
- Download URL: pipecat_ai_small_webrtc_prebuilt-2.5.0.tar.gz
- Upload date:
- Size: 474.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51481506b7b5dff10eff0357ff929cba504a5198c3393697178d2be9895ad9e6
|
|
| MD5 |
899b3bf4ef6f6feee082047c2d2d9560
|
|
| BLAKE2b-256 |
2c4f40bfc9fc1a13f9b1f2657e292c51ff3e3516c530ca722effdcf342d465d9
|
Provenance
The following attestation bundles were made for pipecat_ai_small_webrtc_prebuilt-2.5.0.tar.gz:
Publisher:
publish.yml on pipecat-ai/small-webrtc-prebuilt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pipecat_ai_small_webrtc_prebuilt-2.5.0.tar.gz -
Subject digest:
51481506b7b5dff10eff0357ff929cba504a5198c3393697178d2be9895ad9e6 - Sigstore transparency entry: 1358945139
- Sigstore integration time:
-
Permalink:
pipecat-ai/small-webrtc-prebuilt@a67489f67db51b31d6997f77f8d5073818e39ac0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pipecat-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a67489f67db51b31d6997f77f8d5073818e39ac0 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pipecat_ai_small_webrtc_prebuilt-2.5.0-py3-none-any.whl.
File metadata
- Download URL: pipecat_ai_small_webrtc_prebuilt-2.5.0-py3-none-any.whl
- Upload date:
- Size: 474.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23b1eee95662a0072d9ee5128b8567108eda10d5a54ad71f279730afbb678bfe
|
|
| MD5 |
8aa4bc1002bd22b41cc6bee358f4bfb7
|
|
| BLAKE2b-256 |
34581a2e10c1fb7b44e47558cb6c0954e24a60f98afe912fe55c74fdee66f080
|
Provenance
The following attestation bundles were made for pipecat_ai_small_webrtc_prebuilt-2.5.0-py3-none-any.whl:
Publisher:
publish.yml on pipecat-ai/small-webrtc-prebuilt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pipecat_ai_small_webrtc_prebuilt-2.5.0-py3-none-any.whl -
Subject digest:
23b1eee95662a0072d9ee5128b8567108eda10d5a54ad71f279730afbb678bfe - Sigstore transparency entry: 1358945151
- Sigstore integration time:
-
Permalink:
pipecat-ai/small-webrtc-prebuilt@a67489f67db51b31d6997f77f8d5073818e39ac0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pipecat-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a67489f67db51b31d6997f77f8d5073818e39ac0 -
Trigger Event:
workflow_dispatch
-
Statement type: