🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More

pipecat-ai-small-webrtc-prebuilt

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pipecat-ai-small-webrtc-prebuilt

A simple, ready-to-use client for testing the SmallWebRTCTransport.

0.5.0
Maintainers
1

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

🔧 Set Up the Environment

  • Clone the Repository
git clone https://github.com/your-org/small-webrtc-prebuilt.git
  • Create and activate a virtual environment:

    cd small-webrtc-prebuilt
    python3 -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  • Install dependencies:

    pip install -r requirements.txt
    

🚀 Publishing

  • Prepare to dist:
./scripts/prepare_dist.sh
  • Test the build using TestPyPI with Twine:

Upload to TestPyPI using twine

twine upload --repository testpypi dist/*

Test using pip to download packages from TestPyPI instead of PyPI

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pipecat-ai-small-webrtc-prebuilt

Once you are happy, publish it to production.

twine upload dist/*

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts