Metadata-Version: 2.4
Name: hayavo-meet
Version: 1.1.2
Summary: Official Python SDK for Hayavo Meet, providing real-time communication (RTC) and messaging (RTM) APIs for video conferencing, audio conferencing, screen sharing, chat, rich text messaging, and file sharing.
Author-email: HAYAVO <support@hayavo.com>
License: MIT License
        
        Copyright (c) 2026 HAYAVO
        
        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
        
Project-URL: Homepage, https://meet.hayavo.com
Project-URL: Documentation, https://docs.meet.hayavo.com
Project-URL: Repository, https://github.com/hayavo/hayavo-meet-python
Project-URL: Issues, https://github.com/hayavo/hayavo-meet-python/issues
Project-URL: Changelog, https://github.com/hayavo/hayavo-meet-python/releases
Keywords: hayavo,hayavo meet,rtc,rtm,webrtc,video conferencing,video calling,audio conferencing,voice calling,screen sharing,real-time messaging,chat,rich text,file sharing,collaboration,communication,sdk,live streaming,real-time live streaming,live video streaming,video stream,live broadcast,live stream hosting,low latency streaming,live stream viewer,video streaming viewer,watch live streams,live video player,HLS viewer,HLS video player,HLS streaming,HTTP Live Streaming,HLS video streaming,HLS playback,adaptive bitrate streaming,M3U8 streaming,M3U8 video player,YouTube live streaming,YouTube live broadcast,broadcast to YouTube,stream to YouTube,Facebook live streaming,Facebook live broadcast,broadcast to Facebook,stream to Facebook,multiplatform live streaming,RTMP broadcasting,OBS Studio,OBS streaming,OBS live streaming,OBS Studio integration,OBS RTMP streaming,stream with OBS,OBS to YouTube,OBS to Facebook,RTMP streaming software,OBS live broadcast,RTMP,RTMP ingest,RTMP server,WebRTC streaming,Hayavo streaming,live video distribution,live video broadcasting SDK,video streaming SDK,live streaming API
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Communications
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx<1.0.0,>=0.25.0
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
Requires-Dist: ruff>=0.5; extra == "dev"
Requires-Dist: mypy>=1.10; extra == "dev"
Requires-Dist: build>=1.2; extra == "dev"
Requires-Dist: twine>=5.0; extra == "dev"
Dynamic: license-file

# Hayavo Meet Python SDK

Official Python SDK for **Hayavo Meet**.

Hayavo Meet provides APIs for building real-time communication applications including video conferencing, audio calling, real-time messaging, screen sharing, room management, participant management, and collaboration features.

The Python SDK provides a simple interface for integrating Hayavo Meet into your backend applications.

---

## Installation

Install the latest version from PyPI:

```bash
pip install hayavo-meet
```

Upgrade to the latest version:

```bash
pip install --upgrade hayavo-meet
```

---

## Requirements

* Python 3.9+
* Hayavo Meet API Key
* Hayavo Meet Application credentials:

  * App ID
  * App Secret
  * App Platform
  * App Identifier

### Supported Platforms

| Platform  | Identifier            |
| --------- | --------------------- |
| `web`     | Domain name           |
| `android` | Android package name  |
| `ios`     | iOS bundle identifier |

Python 3.11+ is recommended for production applications.

---

## Getting Started

### 1. Create a Hayavo Meet Application

Create an application from your Hayavo Meet dashboard.

You will receive:

* API Key
* App ID
* App Secret
* App Platform
* App Identifier

Keep your API Key and App Secret secure.

---

### 2. Initialize the Client

```python
from hayavo_meet import HayavoClient

client = HayavoClient(
    api_key="hayavo_meet_live_xxxxxxxxx",
    app_id="your_app_id",
    app_secret="your_app_secret",
    app_platform="web",
    app_identifier="client.example.com",
)
```

---

## Quick Start

### Create a Room

```python
room = client.rooms.create(
    room_name="my-room",
    max_participants=5,
)

print(room)
```

### Generate a Host Token

```python
token = client.rooms.generate_host_token(
    "my-room",
)

print(token)
```

### Generate a Guest Token

```python
token = client.rooms.generate_guest_token(
    "my-room",
    "app_id",
)

print(token)
```

The generated token can then be provided to your client application to authorize the participant to join the room.

---

# Authentication

Hayavo Meet API requests use your application credentials.

| Credential     | Description                                             |
| -------------- | ------------------------------------------------------- |
| API Key        | Authenticates your Hayavo Meet account                  |
| App ID         | Identifies your application                             |
| App Secret     | Application secret used for request authentication      |
| App Platform   | Application platform such as `web`, `android`, or `ios` |
| App Identifier | Platform-specific application identifier                |

## Security

**Never expose your API Key or App Secret in frontend or client-side applications.**

Store sensitive credentials on your backend server or in a secure secrets manager.

For example:

```text
Browser / Mobile App
        |
        | Your backend API
        v
Your Backend
        |
        | Hayavo Meet SDK
        v
Hayavo Meet API
```

Your frontend should not contain:

```text
API Key
App Secret
```

---

# Features

The Hayavo Meet Python SDK is designed to provide access to real-time communication functionality including:

### Real-Time Communication
* 🎥 Video calling
* 🎙️ Audio calling
* 🖥️ Screen sharing
* 🏠 Room management
* 📞 Call management
* 💬 Real-time communication
* 💬 Real-time chat
* 😀 Emoji and reactions
* 🖼️ Image sharing
* 📎 File and attachment sharing
* 👥 Participant management
* 🔐 Secure authentication
* 🛠️ Administrative APIs
* ⏱️ Context and timeout support
* 📦 Typed request and response models
* 🚀 Backend-friendly Python integration

### Live Streaming
- 📡 Real-time live video streaming
- 🎬 Live streaming with WebRTC and RTMP sources
- 👀 Dedicated live stream viewer
- 📺 HLS (HTTP Live Streaming) support
- ▶️ HLS playback with M3U8 playlists
- ☁️ HLS recording and storage integration
- 🎥 Host and guest live streaming
- 👥 Multiple participant streaming support
- 🔊 Real-time audio and video delivery
- 📡 Adaptive streaming
- 🚀 Dynacast support

### External Broadcasting
- 📹 OBS Studio integration
- 🎛️ Receive VideoHub streams in OBS Studio
- ▶️ Broadcast VideoHub streams from OBS to YouTube Live
- 📘 Broadcast VideoHub streams from OBS to Facebook Live
- 🔴 YouTube Live broadcasting support
- 🔵 Facebook Live broadcasting support
- 🔗 RTMP-based broadcasting integration

> Availability of individual features depends on the installed SDK version and the APIs enabled for your Hayavo Meet application.

---

# Room Management

## Create a Room

```python
room = client.rooms.create(
    room_name="hm_default_meet_room",
    max_participants=5,
)

print(room)
```

You can use the returned room information to manage the session and generate participant authorization tokens.

---

## Generate a Host Token

```python
token = client.rooms.generate_host_token(
    "hm_default_meet_room",
)

print(token)
```

A host token authorizes a participant to join the specified room with host permissions.

---

## Generate a Guest Token

```python
token = client.rooms.generate_guest_token(
    "hm_default_meet_room",
    "app_id",
)

print(token)
```

Guest tokens can be used to authorize participants joining an existing room as guests.

---

# RTC Configuration

Hayavo Meet provides RTC connection information through the SDK client.

```python
print(client.rtc)
```

For example, after creating a room:

```python
room = client.rooms.create(
    room_name="hm_default_meet_room",
    max_participants=5,
)

print(client.rtc)
```

Your client application can use the RTC configuration when establishing the real-time communication connection.

---

# Error Handling

The SDK provides structured exceptions for handling API errors.

```python
from hayavo_meet import HayavoClient
from hayavo_meet.exceptions import HayavoMeetError

client = HayavoClient(
    api_key="hayavo_meet_live_xxxxxxxxx",
    app_id="your_app_id",
    app_secret="your_app_secret",
    app_platform="web",
    app_identifier="client.example.com",
)

try:
    room = client.rooms.create(
        room_name="hayavo-meet-room",
    )

    print(room)

except HayavoMeetError as exc:
    print(f"Hayavo Meet error: {exc}")
```

You can use exception handling to handle situations such as:

* Authentication failures
* Invalid credentials
* Invalid requests
* Room errors
* API errors
* Authorization failures
* Network/API communication errors

---

# Environment Variables

For production applications, avoid hard-coding credentials in your source code.

Set your credentials as environment variables:

```bash
export HAYAVO_API_KEY="hayavo_meet_live_xxxxxxxxx"
export HAYAVO_APP_ID="your_app_id"
export HAYAVO_APP_SECRET="your_app_secret"
export HAYAVO_APP_PLATFORM="web"
export HAYAVO_APP_IDENTIFIER="client.example.com"
```

Then initialize the SDK:

```python
import os

from hayavo_meet import HayavoClient

client = HayavoClient(
    api_key=os.environ["HAYAVO_API_KEY"],
    app_id=os.environ["HAYAVO_APP_ID"],
    app_secret=os.environ["HAYAVO_APP_SECRET"],
    app_platform=os.environ["HAYAVO_APP_PLATFORM"],
    app_identifier=os.environ["HAYAVO_APP_IDENTIFIER"],
)
```

For larger production deployments, consider using a secrets manager instead of plain environment configuration.

---

# Production Example

A simple backend integration can look like this:

```python
import os

from hayavo_meet import HayavoClient
from hayavo_meet.exceptions import HayavoMeetError


client = HayavoClient(
    api_key=os.environ["HAYAVO_API_KEY"],
    app_id=os.environ["HAYAVO_APP_ID"],
    app_secret=os.environ["HAYAVO_APP_SECRET"],
    app_platform=os.environ["HAYAVO_APP_PLATFORM"],
    app_identifier=os.environ["HAYAVO_APP_IDENTIFIER"],
)


try:
    room = client.rooms.create(
        room_name="customer-support-room",
        max_participants=5,
    )

    host_token = client.rooms.generate_host_token(
        "customer-support-room",
    )

    guest_token = client.rooms.generate_guest_token(
        "customer-support-room",
        "app_id",
    )

    print("Room:", room)
    print("Host token:", host_token)
    print("Guest token:", guest_token)

except HayavoMeetError as exc:
    print(f"Hayavo Meet error: {exc}")
```

---

# SDK Design

The SDK is organized around the Hayavo Meet client:

```text
HayavoClient
│
├── rooms
│   ├── create()
│   ├── generate_host_token()
│   └── generate_guest_token()
│
├── rtc
│
└── ...
```

This design allows additional Hayavo Meet services to be added without changing the main client interface.

---

# API Reference

Full API documentation is available at:

[Hayavo Meet Documentation](https://docs.meet.hayavo.com?utm_source=chatgpt.com)

The documentation contains detailed information about:

* Authentication
* Rooms
* Tokens
* RTC
* RTM
* Calls
* Participants
* API responses
* Exceptions
* Configuration
* Examples

---

# Repository

Source code and issue tracking are available on GitHub:

[Hayavo Meet Python SDK on GitHub](https://github.com/hayavo/hayavo-meet-python?utm_source=chatgpt.com)

---

# Contributing

Contributions are welcome.

## 1. Fork the repository

Fork the project on GitHub and clone your fork:

```bash
git clone https://github.com/YOUR_USERNAME/hayavo-meet-python.git

cd hayavo-meet-python
```

## 2. Create a feature branch

```bash
git checkout -b feature/your-feature
```

## 3. Make your changes

Add your implementation and tests.

## 4. Run the test suite

```bash
pytest
```

## 5. Commit your changes

```bash
git add .

git commit -m "Add your feature"
```

## 6. Push your branch

```bash
git push origin feature/your-feature
```

## 7. Open a Pull Request

Create a Pull Request against the main repository.

---

# Reporting Issues

If you discover a bug, have a question, or want to request a feature, open an issue in the GitHub repository:

[Report an issue](https://github.com/hayavo/hayavo-meet-python/issues?utm_source=chatgpt.com)

When reporting a bug, include:

* SDK version
* Python version
* Operating system
* Minimal reproducible example
* Error message
* Relevant logs

Do not include API Keys, App Secrets, passwords, tokens, or other sensitive credentials.

---

# License

This project is licensed under the **MIT License**.

See the `LICENSE` file for details.

---

## Hayavo Meet

Build real-time communication into your applications with **Hayavo Meet**.

**Video • Audio • Real-time Communication • Rooms • Collaboration**
